diff options
Diffstat (limited to 'shell/ev-daemon.c')
-rw-r--r-- | shell/ev-daemon.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/shell/ev-daemon.c b/shell/ev-daemon.c index 49d9f1a2..e9c2f0ae 100644 --- a/shell/ev-daemon.c +++ b/shell/ev-daemon.c @@ -178,10 +178,11 @@ ev_migrate_metadata (void) if (userdir) { dot_dir = g_build_filename (userdir, "atril", NULL); } else { - dot_dir = g_build_filename (g_get_home_dir (), - ".config", - "atril", - NULL); + #if GLIB_CHECK_VERSION(2, 6, 0) + dot_dir = g_build_filename(g_get_user_config_dir(), "atril", NULL); + #else // glib version < 2.6.0 + dot_dir = g_build_filename(g_get_home_dir(), ".config", "atril", NULL); + #endif } updated = g_build_filename (dot_dir, "migrated-to-gvfs", NULL); |