aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xlopez@igalia.com>2011-08-29 18:54:05 +0800
committerXan Lopez <xlopez@igalia.com>2011-08-29 18:54:05 +0800
commit58c91ceba8dc3a5a12a80afd58062a5d94e96644 (patch)
tree34cc4375fe411ba329bddd070de8e19c608bab13
parent5f1210e2ea3bacaac0d4349cbb9eb22a4cb81191 (diff)
downloadgsoc2013-epiphany-58c91ceba8dc3a5a12a80afd58062a5d94e96644.tar.gz
gsoc2013-epiphany-58c91ceba8dc3a5a12a80afd58062a5d94e96644.tar.zst
gsoc2013-epiphany-58c91ceba8dc3a5a12a80afd58062a5d94e96644.zip
ephy-main: more parameter sanity check
Using private profile and app mode at the same time does not make sense.
-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 a87b4b496..c74b2e7ef 100644
--- a/src/ephy-main.c
+++ b/src/ephy-main.c
@@ -361,6 +361,11 @@ main (int argc,
exit (1);
}
+ if (private_instance == TRUE && application_mode == TRUE) {
+ g_print ("Cannot use --private-instance and --application-mode at the same time\n");
+ exit (1);
+ }
+
if (profile_directory != NULL && private_instance == FALSE && application_mode == FALSE) {
g_print ("--profile can only be used in combination with --private-instance or --application-mode\n");
exit (1);