diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-06-21 09:51:15 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-06-21 09:51:15 +0000 |
| commit | 4cf23f53e784af2ac97d1d87002996e542cda50c (patch) | |
| tree | bb3f9389cd87a02d64f30d8726c4f2bb846e8099 /openbox/openbox.c | |
| parent | 7f2550e0ce97957192e6b467a6be9104feca18c2 (diff) | |
add -sm-disable option
Diffstat (limited to 'openbox/openbox.c')
| -rw-r--r-- | openbox/openbox.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/openbox/openbox.c b/openbox/openbox.c index 10970820..c192b4d0 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -49,6 +49,7 @@ #include <X11/cursorfont.h> #ifdef USE_SM +gboolean ob_sm_use = TRUE; SmcConn ob_sm_conn; gchar *ob_sm_id = NULL; #endif @@ -471,7 +472,8 @@ static void print_help() g_print("Options:\n\n"); g_print(" -rc PATH Specify the path to the rc file to use\n"); #ifdef USE_SM - g_print(" -sm-client-id ID Specify the session manager ID\n"); + g_print(" -sm-client-id ID Specify session management ID\n"); + g_print(" -sm-disable Disable connection to session manager\n"); #endif g_print(" -help Display this help and exit\n"); g_print(" -version Display the version and exit\n"); @@ -504,6 +506,8 @@ static void parse_args(int argc, char **argv) g_printerr(_("-sm-client-id requires an argument\n")); else ob_sm_id = argv[++i]; + } else if (!strcmp(argv[i], "-sm-disable")) { + ob_sm_use = FALSE; #endif } else { g_printerr("Invalid option: '%s'\n\n", argv[i]); |
