diff options
author | Perberos <[email protected]> | 2012-01-30 12:29:07 -0300 |
---|---|---|
committer | Perberos <[email protected]> | 2012-01-30 12:29:07 -0300 |
commit | 6f5d2fdf953ae8e2687fbd4808babb0bcb73b81c (patch) | |
tree | 20cca92f2b978fc15231f433cd0b685cda3ad767 | |
parent | ffdb44194ef7dfab2f4abc5afcfa267b54139ef5 (diff) | |
download | pluma-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-x | pluma/pluma-dirs.c | 6 |
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; |