[epiphany] ephy-main: run app mode only with a existing dir



commit b0b25d75ac3d8feedb1cc04e10b98e626d7b67ff
Author: Diego Escalante Urrelo <diegoe igalia com>
Date:   Thu Mar 1 16:43:24 2012 -0500

    ephy-main: run app mode only with a existing dir
    
    https://bugzilla.gnome.org/show_bug.cgi?id=669700

 src/ephy-main.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-main.c b/src/ephy-main.c
index 99acbb7..53f75b8 100644
--- a/src/ephy-main.c
+++ b/src/ephy-main.c
@@ -379,6 +379,11 @@ main (int argc,
     exit (1);
   }
 
+  if (application_mode && !g_file_test (profile_directory, G_FILE_TEST_IS_DIR)) {
+      g_print ("--profile must be an existing directory when --application-mode is requested\n");
+      exit (1);
+  }
+
   /* Work-around Flash Player crash */
   g_setenv ("XLIB_SKIP_ARGB_VISUALS", "1", FALSE);
 



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