From ef4616f943c15d40cc2ff189b70e0ef6251af561 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Tue, 28 Aug 2001 16:38:06 +0000 Subject: guile integration --- mixlib/mix_config.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mixlib/mix_config.c') 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 #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_; -- cgit v1.2.3