summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerberos <[email protected]>2012-01-30 13:12:30 -0300
committerPerberos <[email protected]>2012-01-30 13:12:30 -0300
commitd7851474e28e1aa65cbdabe0d3b4032afc7d40f3 (patch)
treed2cd712b8aa03c9aacc32a7e294b281e214ed27e
parent1016505cc78a6dfe385c935ab17bf458f0ba2de3 (diff)
downloadmate-panel-d7851474e28e1aa65cbdabe0d3b4032afc7d40f3.tar.bz2
mate-panel-d7851474e28e1aa65cbdabe0d3b4032afc7d40f3.tar.xz
g_get_user_config_dir() would be better (https://github.com/mate-desktop/mate-panel/issues/8)
-rw-r--r--mate-panel/panel-util.c6
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