summaryrefslogtreecommitdiffhomepage
path: root/mixlib/mix_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'mixlib/mix_config.c')
-rw-r--r--mixlib/mix_config.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mixlib/mix_config.c b/mixlib/mix_config.c
index fd3505e..f55ee48 100644
--- a/mixlib/mix_config.c
+++ b/mixlib/mix_config.c
@@ -29,8 +29,9 @@
#include <errno.h>
#include "mix_config.h"
+const gchar *MIX_CONFIG_DIR = ".mdk";
+
static const gchar COMMENT_PREFIX_ = '#';
-static const gchar *DEF_DIR_ = ".mdk";
static const gchar *AUTOSAVE_KEY_ = "Autosave";
static const gchar *AUTOSAVE_YES_ = "True";
static const gchar *AUTOSAVE_NO_ = "False";
@@ -58,7 +59,8 @@ mix_config_new (const gchar *dirname, const gchar *filename)
mix_config_t *result = NULL;
if (DEF_DIRNAME_ == NULL)
- DEF_DIRNAME_ = g_strdup_printf ("%s/%s", g_get_home_dir (), DEF_DIR_);
+ DEF_DIRNAME_ = g_strconcat (g_get_home_dir (), G_DIR_SEPARATOR_S,
+ MIX_CONFIG_DIR, NULL);
if (dirname == NULL) dirname = DEF_DIRNAME_;
if (filename == NULL) filename = DEF_FILENAME_;