[epiphany] Revert "Revert "Ensure directories are created before sandbox is initialized""
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Revert "Revert "Ensure directories are created before sandbox is initialized""
- Date: Wed, 24 Jul 2019 19:14:32 +0000 (UTC)
commit b0386dcb7c3ca72284f4ed9e601778796f552536
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Wed Jul 24 14:13:12 2019 -0500
Revert "Revert "Ensure directories are created before sandbox is initialized""
This reverts commit dd021bedc6a3dae42e2881a5077720a8fff764b9.
lib/ephy-file-helpers.c | 1 +
src/ephy-main.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index ead8cbb5d..4b961a715 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -418,6 +418,7 @@ ephy_file_helpers_init (const char *profile_dir,
ret = ephy_ensure_dir_exists (ephy_profile_dir (), error);
ephy_ensure_dir_exists (ephy_cache_dir (), NULL);
ephy_ensure_dir_exists (ephy_config_dir (), NULL);
+ ephy_ensure_dir_exists (ephy_file_tmp_dir (), NULL);
}
if (steal_data_from_profile && profile_dir) {
diff --git a/src/ephy-main.c b/src/ephy-main.c
index bdbd0cb15..0f2f79bea 100644
--- a/src/ephy-main.c
+++ b/src/ephy-main.c
@@ -316,8 +316,8 @@ main (int argc,
if (incognito_mode && profile_directory == NULL)
profile_directory = ephy_default_profile_dir ();
- /* Start our services */
- flags = !application_mode ? EPHY_FILE_HELPERS_ENSURE_EXISTS : 0;
+ /* Required for bubblewrap sandbox. */
+ flags = EPHY_FILE_HELPERS_ENSURE_EXISTS;
if (incognito_mode || private_instance || application_mode || automation_mode)
flags |= EPHY_FILE_HELPERS_PRIVATE_PROFILE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]