diff options
author | Brian Tarricone <brian@tarricone.org> | 2008-10-08 09:14:35 +0000 |
---|---|---|
committer | Brian Tarricone <brian@tarricone.org> | 2008-10-08 09:14:35 +0000 |
commit | 15723bce50632bc72f9330b94e017212669c70f7 (patch) | |
tree | 40b03e6b0d63187160fb3343661395aa8582df31 /xfce4-session-logout | |
parent | 660600af9cd451ab5d9cc56a411e373a7c57876f (diff) | |
download | xfce4-session-15723bce50632bc72f9330b94e017212669c70f7.tar.gz |
* xfce4-session-logout/{main.c,xfce4-session-logout.1}: Add
--fast command-line option to instruct the session manager
not to save the session.
(Old svn revision: 28101)
Diffstat (limited to 'xfce4-session-logout')
-rw-r--r-- | xfce4-session-logout/main.c | 5 | ||||
-rw-r--r-- | xfce4-session-logout/xfce4-session-logout.1 | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/xfce4-session-logout/main.c b/xfce4-session-logout/main.c index 08db9c36..7f6eb2f1 100644 --- a/xfce4-session-logout/main.c +++ b/xfce4-session-logout/main.c @@ -92,6 +92,7 @@ usage (int exit_code) " --reboot Reboot without displaying the logout dialog\n" " --suspend Suspend without displaying the logout dialog\n" " --hibernate Hibernate without displaying the logout dialog\n" + " --fast Log out quickly; don't save the session\n" "\n" " --help Print this help message and exit\n" " --version Print version information and exit\n" @@ -134,6 +135,10 @@ main (int argc, char **argv) { shutdown_type = XFSM_SHUTDOWN_HIBERNATE; } + else if (strcmp (*argv, "--fast") == 0) + { + allow_save = FALSE; + } else if (strcmp (*argv, "--version") == 0) { printf ("%s (Xfce %s)\n\n" diff --git a/xfce4-session-logout/xfce4-session-logout.1 b/xfce4-session-logout/xfce4-session-logout.1 index 145318d4..bbcc3656 100644 --- a/xfce4-session-logout/xfce4-session-logout.1 +++ b/xfce4-session-logout/xfce4-session-logout.1 @@ -34,6 +34,11 @@ Suspend without displaying the logout dialog. .B \-\-hibernate Hibernate without displaying the logout dialog. .TP +.B \-\-fast +Do a fast shutdown. This instructs the session manager +not to save the session, but instead to quit everything +quickly. +.TP .B \-\-help Print a help screen and exit. .TP |