summaryrefslogtreecommitdiff
path: root/openbox/openbox.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2007-11-12 19:17:30 +0100
committerMikael Magnusson <mikachu@comhem.se>2007-11-12 19:17:30 +0100
commit5f045992f16f37de24a71ea089b9494d4ed9848c (patch)
tree776b7d0de91512c02ae6276d1e9274441ebc6276 /openbox/openbox.c
parentdc6564619fdc9940a3d9db8528483c27f6bcb894 (diff)
Add --exit.
Diffstat (limited to 'openbox/openbox.c')
-rw-r--r--openbox/openbox.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/openbox/openbox.c b/openbox/openbox.c
index 77bb0363..6f47fbd0 100644
--- a/openbox/openbox.c
+++ b/openbox/openbox.c
@@ -489,6 +489,7 @@ static void print_help()
g_print(_("\nPassing messages to a running Openbox instance:\n"));
g_print(_(" --reconfigure Reload Openbox's configuration\n"));
g_print(_(" --restart Restart Openbox\n"));
+ g_print(_(" --exit Exit Openbox\n"));
g_print(_("\nDebugging options:\n"));
g_print(_(" --sync Run in synchronous mode\n"));
g_print(_(" --debug Display debugging output\n"));
@@ -554,9 +555,13 @@ static void parse_args(gint *argc, gchar **argv)
}
else if (!strcmp(argv[i], "--reconfigure")) {
remote_control = 1;
- } else if (!strcmp(argv[i], "--restart")) {
+ }
+ else if (!strcmp(argv[i], "--restart")) {
remote_control = 2;
}
+ else if (!strcmp(argv[i], "--exit")) {
+ remote_control = 3;
+ }
else if (!strcmp(argv[i], "--sm-save-file")) {
if (i == *argc - 1) /* no args left */
/* not translated cuz it's sekret */