aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2003-04-10 01:14:54 +0800
committerDan Winship <danw@src.gnome.org>2003-04-10 01:14:54 +0800
commit365ad25fab8a746f24cb5587bc990409a6118c61 (patch)
tree055891daaf82b7d3922e240c30d2865eb1ae3cca /shell
parentb60738042c6b464cdebd3181d38e9dfe6717f2aa (diff)
downloadgsoc2013-evolution-365ad25fab8a746f24cb5587bc990409a6118c61.tar.gz
gsoc2013-evolution-365ad25fab8a746f24cb5587bc990409a6118c61.tar.zst
gsoc2013-evolution-365ad25fab8a746f24cb5587bc990409a6118c61.zip
Add a "--setup-only" flag, to just run e_setup() and exit. (For #40889)
* main.c (main): Add a "--setup-only" flag, to just run e_setup() and exit. (For #40889) svn path=/trunk/; revision=20788
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog3
-rw-r--r--shell/main.c5
2 files changed, 8 insertions, 0 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 247e3fdce1..3e955ae50f 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -6,6 +6,9 @@
2003-04-08 Dan Winship <danw@ximian.com>
+ * main.c (main): Add a "--setup-only" flag, to just run e_setup()
+ and exit. (For #40889)
+
* glade/evolution-startup-wizard.glade: Remove the color specs so
the druid will use theme colors
diff --git a/shell/main.c b/shell/main.c
index db04513a5c..48be689dfa 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -86,6 +86,7 @@ static gboolean no_splash = FALSE;
static gboolean start_online = FALSE;
static gboolean start_offline = FALSE;
static gboolean force_upgrade = FALSE;
+static gboolean setup_only = FALSE;
static gboolean killev = FALSE;
extern char *evolution_debug_log;
@@ -539,6 +540,8 @@ main (int argc, char **argv)
{ "force-upgrade", '\0', POPT_ARG_NONE, &force_upgrade, 0,
N_("Force upgrading of configuration files from Evolution 1.0.x"), NULL },
#endif
+ { "setup-only", '\0', POPT_ARG_NONE | POPT_ARGFLAG_DOC_HIDDEN,
+ &setup_only, 0, NULL, NULL },
POPT_AUTOHELP
{ NULL, '\0', 0, NULL, 0, NULL, NULL }
};
@@ -598,6 +601,8 @@ main (int argc, char **argv)
if (! e_setup (evolution_directory))
exit (1);
+ if (setup_only)
+ exit (0);
uri_list = NULL;