summaryrefslogtreecommitdiff
path: root/libwindow-settings/mate-wm-manager.c
diff options
context:
space:
mode:
authorPerberos <[email protected]>2012-02-22 01:47:46 -0300
committerPerberos <[email protected]>2012-02-22 01:47:46 -0300
commitc5dfae990e8a774fa3b88454dd5a303cee902573 (patch)
tree7670beb5de50d48e2687eabef0c5957c1a537c6f /libwindow-settings/mate-wm-manager.c
parent73ff1adc61a874f496a3fbef059f3630aaa182e5 (diff)
downloadmate-control-center-c5dfae990e8a774fa3b88454dd5a303cee902573.tar.bz2
mate-control-center-c5dfae990e8a774fa3b88454dd5a303cee902573.tar.xz
g_get_user_config_dir() would be better (https://github.com/mate-desktop/mate-panel/issues/8)
Diffstat (limited to 'libwindow-settings/mate-wm-manager.c')
-rw-r--r--libwindow-settings/mate-wm-manager.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libwindow-settings/mate-wm-manager.c b/libwindow-settings/mate-wm-manager.c
index 3c0d5776..ea17a3cf 100644
--- a/libwindow-settings/mate-wm-manager.c
+++ b/libwindow-settings/mate-wm-manager.c
@@ -228,7 +228,12 @@ void mate_wm_manager_init(void)
scan_wm_directory(tempdir, FALSE);
g_free(tempdir);
- tempdir = g_build_filename(g_get_home_dir(), ".config", "mate", "wm-properties", NULL);
+ #if GLIB_CHECK_VERSION(2, 6, 0)
+ tempdir = g_build_filename(g_get_user_config_dir(), "mate", "wm-properties", NULL);
+ #else // glib version < 2.6.0
+ tempdir = g_build_filename(g_get_home_dir(), ".config", "mate", "wm-properties", NULL);
+ #endif
+
scan_wm_directory(tempdir, TRUE);
g_free(tempdir);