summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerberos <[email protected]>2012-01-30 12:29:07 -0300
committerPerberos <[email protected]>2012-01-30 12:29:07 -0300
commit6f5d2fdf953ae8e2687fbd4808babb0bcb73b81c (patch)
tree20cca92f2b978fc15231f433cd0b685cda3ad767
parentffdb44194ef7dfab2f4abc5afcfa267b54139ef5 (diff)
downloadpluma-6f5d2fdf953ae8e2687fbd4808babb0bcb73b81c.tar.bz2
pluma-6f5d2fdf953ae8e2687fbd4808babb0bcb73b81c.tar.xz
g_get_user_config_dir() would be better (https://github.com/mate-desktop/mate-panel/issues/8)
-rwxr-xr-xpluma/pluma-dirs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/pluma/pluma-dirs.c b/pluma/pluma-dirs.c
index d3fafdd4..7f6534d3 100755
--- a/pluma/pluma-dirs.c
+++ b/pluma/pluma-dirs.c
@@ -56,7 +56,11 @@ gchar* pluma_dirs_get_user_config_dir(void)
}
}
#else
- config_dir = g_build_filename(g_get_user_config_dir(), "pluma", NULL);
+ #if GLIB_CHECK_VERSION(2, 6, 0)
+ config_dir = g_build_filename(g_get_user_config_dir(), "pluma", NULL);
+ #else // glib version < 2.6.0
+ config_dir = g_build_filename(g_get_home_dir(), ".config", "pluma", NULL);
+ #endif
#endif
return config_dir;