From c5dfae990e8a774fa3b88454dd5a303cee902573 Mon Sep 17 00:00:00 2001 From: Perberos Date: Wed, 22 Feb 2012 01:47:46 -0300 Subject: g_get_user_config_dir() would be better (https://github.com/mate-desktop/mate-panel/issues/8) --- libwindow-settings/mate-wm-manager.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libwindow-settings') 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); -- cgit v1.2.1