diff options
-rw-r--r-- | mate-panel/panel-util.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mate-panel/panel-util.c b/mate-panel/panel-util.c index 11d72e69..f8713611 100644 --- a/mate-panel/panel-util.c +++ b/mate-panel/panel-util.c @@ -447,7 +447,11 @@ void panel_lock_screen(GdkScreen* screen) static char* panel_launcher_get_personal_path(void) { - return g_build_filename(g_get_home_dir(), ".config", "mate", "panel2.d", "default", "launchers", NULL); + #if GLIB_CHECK_VERSION(2, 6, 0) + return g_build_filename(g_get_user_config_dir(), "mate", "panel2.d", "default", "launchers", NULL); + #else // glib version < 2.6.0 + return g_build_filename(g_get_home_dir(), ".config", "mate", "panel2.d", "default", "launchers", NULL); + #endif } gboolean |