diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-04-09 15:12:06 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-04-09 15:12:06 (GMT) |
commit | 865be356c53afc3bdeae21c640bf0c3d5433fc4b (patch) | |
tree | 1204a61960a417b6964b4aef245576e0f790ac20 /src/core | |
parent | 9b7dfd449b08637c4b4fc6d95acf3a8fcb5fd58d (diff) |
Created user public and private RSA keys if needed.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/core.c | 10 |
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(); |