aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-main.c')
-rw-r--r--src/ephy-main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ephy-main.c b/src/ephy-main.c
index 99acbb71b..53f75b8e6 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);