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



commit 7fad9f4c7f7bcba0b7d3050daa2ed152ded95476
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 | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index 4dc88ede9..448d6a178 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -382,6 +382,11 @@ 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 {
+      /* Custom profiles store these locally but note this cannot work with the sandbox
+         since it bases file permissions on prgname which is still "epiphany" */
+      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]