Linux Commands Examples

A great documentation place for Linux commands

gnome-session-quit

End the current GNOME session


see also : gnome-session

Synopsis

gnome-session-quit [--logout|--power-off|--reboot] [--force] [--no-prompt]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
PATH=/usr/bin:/bin:$PATH
GSESSION_END="gnome-session-quit --logout --no-prompt"
if ! hash gnome-session-quit 2>/dev/null; then

description

The gnome-session-quit program can be used to end a GNOME session.

options

The following options are supported:
--logout

Prompt the user to confirm logout. This is the default behavior.

--power-off

Prompt the user to confirm system power off.

--reboot

Prompt the user to confirm system reboot.

--force

Ignore any inhibitors.

--no-prompt

End the session without user interaction. This only works with --logout.


bugs

If you find bugs in the gnome-session-quit program, please report these on https://bugzilla.gnome.org.


see also

gnome-session

How can this site be more helpful to YOU ?


give  feedback