summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/core.c b/src/core/core.c
index 0460a23..ec7b0fc 100644
--- a/src/core/core.c
+++ b/src/core/core.c
@@ -31,6 +31,9 @@
#include "formats.h"
#include "params.h"
#include "processors.h"
+#include "../analysis/db/keymgn.h"
+#include "../common/io.h"
+#include "../common/xdg.h"
#include "../gtkext/support.h"
@@ -50,6 +53,7 @@
bool load_all_basic_components(void)
{
static bool result = false; /* Bilan à retourner */
+ char *cfgdir; /* Répertoire de configuration */
/**
* On mémorise les passages réussis.
@@ -61,8 +65,14 @@ bool load_all_basic_components(void)
add_pixmap_directory(PACKAGE_DATA_DIR);
add_pixmap_directory(PACKAGE_SOURCE_DIR G_DIR_SEPARATOR_S "pixmaps");
+ cfgdir = get_xdg_config_dir("chrysalide" G_DIR_SEPARATOR_S "chrysalide");
+ result &= (ensure_path_exists(cfgdir) == 0);
+ free(cfgdir);
+
result &= load_main_config_parameters();
+ result &= ensure_user_has_rsa_keys();
+
result &= g_generic_config_read(get_main_configuration());
result &= load_hard_coded_processors_definitions();