diff options
Diffstat (limited to 'libwindow-settings/mate-wm-manager.c')
-rw-r--r-- | libwindow-settings/mate-wm-manager.c | 7 |
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); |