diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-04-11 00:36:41 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-04-11 00:36:41 (GMT) |
commit | 30009c26869094699c93ff5d922405e3a13fd26f (patch) | |
tree | 4bc9160061d1ab4dc1f8250185242fee1b348439 /src/core | |
parent | 3fbcabfd38e58dc4c47c9cd6ad95acb82e6e352b (diff) |
Moved all the temporary creations in a temporary directory.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/params.c | 3 | ||||
-rw-r--r-- | src/core/params.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/core/params.c b/src/core/params.c index a3783d7..ce8b9ce 100644 --- a/src/core/params.c +++ b/src/core/params.c @@ -216,6 +216,9 @@ bool load_main_config_parameters(void) param = g_generic_config_create_param(config, MPK_KEYBINDINGS_EDIT, CPT_STRING, "<Shift>F2"); if (param == NULL) return false; + param = g_generic_config_create_param(config, MPK_TMPDIR, CPT_STRING, "/tmp/chrysalide"); + if (param == NULL) return false; + param = g_generic_config_create_param(config, MPK_AUTO_SAVE, CPT_BOOLEAN, true); if (param == NULL) return false; diff --git a/src/core/params.h b/src/core/params.h index 60c57d4..4535b04 100644 --- a/src/core/params.h +++ b/src/core/params.h @@ -66,6 +66,7 @@ #define MPK_TOOLTIP_MAX_CALLS "gui.editor.views.tooltip_max_calls" #define MPK_TOOLTIP_MAX_STRINGS "gui.editor.views.tooltip_max_strings" #define MPK_KEYBINDINGS_EDIT "gui.key_bindings.global.edit" +#define MPK_TMPDIR "misc.tmpdir" #define MPK_AUTO_SAVE "project.autosave" |