[epiphany] Fix incognito mode desktop action



commit 57c1a01c289ebfebe6561b52c2aaa03051b0d422
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Fri Feb 6 07:58:59 2015 -0600

    Fix incognito mode desktop action
    
    Solution by Gustavo Noronha
    
    https://bugzilla.gnome.org/show_bug.cgi?id=728536

 src/ephy-main.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/ephy-main.c b/src/ephy-main.c
index 12704ea..22dd957 100644
--- a/src/ephy-main.c
+++ b/src/ephy-main.c
@@ -353,10 +353,8 @@ main (int argc,
       exit (1);
   }
 
-  if (incognito_mode && profile_directory == NULL) {
-    g_print ("--incognito-mode needs a --profile parameter to steal the data from\n");
-    exit (1);
-  }
+  if (incognito_mode && profile_directory == NULL)
+    profile_directory = g_strdup (ephy_dot_dir ());
 
   /* Start our services */
   flags = EPHY_FILE_HELPERS_ENSURE_EXISTS;


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