summaryrefslogtreecommitdiff
path: root/src/eom-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eom-util.c')
-rw-r--r--src/eom-util.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/eom-util.c b/src/eom-util.c
index 2d74305..08cb573 100644
--- a/src/eom-util.c
+++ b/src/eom-util.c
@@ -254,10 +254,11 @@ eom_util_dot_dir (void)
if (dot_dir == NULL) {
gboolean exists;
- dot_dir = g_build_filename (g_get_home_dir (),
- ".mate2",
- "eom",
- NULL);
+ #if GLIB_CHECK_VERSION(2, 6, 0)
+ dot_dir = g_build_filename(g_get_user_config_dir(), ".mate", "eom", NULL);
+ #else // glib version < 2.6.0
+ dot_dir = g_build_filename(g_get_home_dir(), ".config", ".mate", "eom", NULL);
+ #endif
exists = ensure_dir_exists (dot_dir);