[epiphany/wip/tingping/profile-migration: 104/105] Fix setting cache/config dir for custom (non-webapp) profile dir



commit f782f123363794bfbdb478d7ce7fdb778470bdda
Author: Patrick Griffis <pgriffis igalia com>
Date:   Sun Jan 6 13:44:11 2019 -0500

    Fix setting cache/config dir for custom (non-webapp) profile dir

 lib/ephy-file-helpers.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index 024a5a686..a06f271cd 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -379,6 +379,9 @@ ephy_file_helpers_init (const char          *profile_dir,
       cache_dir = g_build_filename (g_get_user_cache_dir (), app_name, NULL);
       config_dir = g_build_filename (g_get_user_config_dir (), app_name, NULL);
       profile_dir_type = EPHY_PROFILE_DIR_WEB_APP;
+    } else {
+      cache_dir = g_build_filename (profile_dir_global, "cache", NULL);
+      config_dir = g_build_filename (profile_dir_global, "config", NULL);
     }
   } else if (private_profile) {
     if (ephy_file_tmp_dir () == NULL) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]