aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-01-22 07:28:40 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-01-22 07:28:40 +0000
commited5e41fbf46d5820d596c853378bdf45355e6efa (patch)
treecc730fe5a728e48876bb9cadce7ec5c9cfd7c1af /src/main.c
parent127c471c8997da59be09d6844c8e10238ab9ca09 (diff)
added safe mode (don't load plug-ins).
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3193 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index ed083801..efe842f5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,6 +1,6 @@
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2012 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2013 Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -132,6 +132,7 @@ static struct RemoteCmd {
GPtrArray *status_full_folders;
gchar *open_msg;
gboolean configdir;
+ gboolean safe_mode;
gboolean exit;
gboolean restart;
gchar *argv0;
@@ -607,6 +608,8 @@ static void parse_cmd_opt(int argc, char *argv[])
(argv[i + 1], -1, NULL, NULL, NULL);
i++;
}
+ } else if (!strncmp(argv[i], "--safemode", 10)) {
+ cmd.safe_mode = TRUE;
} else if (!strncmp(argv[i], "--exit", 6)) {
cmd.exit = TRUE;
} else if (!strncmp(argv[i], "--help", 6)) {
@@ -633,6 +636,7 @@ static void parse_cmd_opt(int argc, char *argv[])
#endif
g_print("%s\n", _(" --exit exit Sylpheed"));
g_print("%s\n", _(" --debug debug mode"));
+ g_print("%s\n", _(" --safemode safe mode"));
g_print("%s\n", _(" --help display this help and exit"));
g_print("%s\n", _(" --version output version information and exit"));
@@ -1249,6 +1253,11 @@ static void plugin_init(void)
return;
}
+ if (cmd.safe_mode) {
+ STATUSBAR_POP(mainwin);
+ return;
+ }
+
ADD_SYM(prog_version);
ADD_SYM(app_will_exit);