[epiphany] Ensure private profile dirs actually do exist.



commit 616fe15f7781921ec5d71fdcda76476137058a0f
Author: Xan Lopez <xan igalia com>
Date:   Tue May 8 13:20:33 2012 +0200

    Ensure private profile dirs actually do exist.
    
    Perhaps PRIVATE_PROFILE should implicitly add ENSURE_EXISTS, seems
    logical. Do this for new.

 tests/ephy-download-test.c     |    4 +++-
 tests/ephy-embed-single-test.c |    4 +++-
 tests/ephy-web-view-test.c     |    4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/tests/ephy-download-test.c b/tests/ephy-download-test.c
index 3fd208a..dbcd005 100644
--- a/tests/ephy-download-test.c
+++ b/tests/ephy-download-test.c
@@ -166,7 +166,9 @@ main (int argc, char *argv[])
   ephy_embed_prefs_init ();
   _ephy_shell_create_instance (EPHY_EMBED_SHELL_MODE_PRIVATE);
 
-  if (!ephy_file_helpers_init (NULL, EPHY_FILE_HELPERS_PRIVATE_PROFILE, NULL)) {
+  if (!ephy_file_helpers_init (NULL,
+                               EPHY_FILE_HELPERS_PRIVATE_PROFILE | EPHY_FILE_HELPERS_ENSURE_EXISTS,
+                               NULL)) {
     g_debug ("Something wrong happened with ephy_file_helpers_init()");
     return -1;
   }
diff --git a/tests/ephy-embed-single-test.c b/tests/ephy-embed-single-test.c
index f5e4b8e..4441c8d 100644
--- a/tests/ephy-embed-single-test.c
+++ b/tests/ephy-embed-single-test.c
@@ -87,7 +87,9 @@ main (int argc, char *argv[])
   ephy_embed_prefs_init ();
   _ephy_shell_create_instance (EPHY_EMBED_SHELL_MODE_PRIVATE);
 
-  if (!ephy_file_helpers_init (NULL, EPHY_FILE_HELPERS_PRIVATE_PROFILE, NULL)) {
+  if (!ephy_file_helpers_init (NULL,
+                               EPHY_FILE_HELPERS_ENSURE_EXISTS | EPHY_FILE_HELPERS_PRIVATE_PROFILE,
+                               NULL)) {
     g_debug ("Something wrong happened with ephy_file_helpers_init()");
     return -1;
   }
diff --git a/tests/ephy-web-view-test.c b/tests/ephy-web-view-test.c
index ee2af1f..eb0bffd 100644
--- a/tests/ephy-web-view-test.c
+++ b/tests/ephy-web-view-test.c
@@ -246,7 +246,9 @@ main (int argc, char *argv[])
   ephy_debug_init ();
   ephy_embed_prefs_init ();
 
-  if (!ephy_file_helpers_init (NULL, EPHY_FILE_HELPERS_PRIVATE_PROFILE, NULL)) {
+  if (!ephy_file_helpers_init (NULL,
+                               EPHY_FILE_HELPERS_PRIVATE_PROFILE | EPHY_FILE_HELPERS_ENSURE_EXISTS,
+                               NULL)) {
     g_debug ("Something wrong happened with ephy_file_helpers_init()");
     return -1;
   }



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