summaryrefslogtreecommitdiffhomepage
path: root/mixgtk/mixgtk_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'mixgtk/mixgtk_config.c')
-rw-r--r--mixgtk/mixgtk_config.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/mixgtk/mixgtk_config.c b/mixgtk/mixgtk_config.c
index 267b443..ae96f2a 100644
--- a/mixgtk/mixgtk_config.c
+++ b/mixgtk/mixgtk_config.c
@@ -30,6 +30,7 @@
#include "mixgtk.h"
#include "mixgtk_config.h"
+static const gchar *MIXGTK_CONFIG_FILE_ = "gmixvm.config";
static const gchar *SPLIT_KEY = "Split";
static const gchar *SPLIT_YES = "Yes";
static const gchar *SPLIT_NO = "No";
@@ -40,7 +41,13 @@ static mix_config_t *config_ = NULL;
gboolean
mixgtk_config_load (void)
{
- if (config_ == NULL) config_ = mix_config_new (NULL, NULL);
+ if (config_ == NULL)
+ {
+ gchar *cdir = g_strconcat (g_get_home_dir (), G_DIR_SEPARATOR_S,
+ MIXGTK_FILES_DIR, NULL);
+ config_ = mix_config_new (cdir, MIXGTK_CONFIG_FILE_);
+ g_free (cdir);
+ }
return (config_ != NULL);
}