[epiphany] ephy-main: more parameter sanity check
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-main: more parameter sanity check
- Date: Mon, 29 Aug 2011 12:43:42 +0000 (UTC)
commit 58c91ceba8dc3a5a12a80afd58062a5d94e96644
Author: Xan Lopez <xlopez igalia com>
Date: Mon Aug 29 12:54:05 2011 +0200
ephy-main: more parameter sanity check
Using private profile and app mode at the same time does not make
sense.
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 a87b4b4..c74b2e7 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]