0

I see a neat answer by Steve Dee to a question I have, but it's specific to Gnome in that it uses gnome-session-quit to log out the current user. I use Xubuntu, and thus XFCE. Is there an equivalent?

To the extent it matters, I'm using a variety of versions, always the one native to a supported LTS Xubuntu.

3
  • Well it depends what version you have. Please edit your question and add the version of your distro and - to make it easier for us - which xfce version you are currently using
    – kanehekili
    May 29, 2020 at 18:14
  • What about using xfce4-session-logout? May 29, 2020 at 18:16
  • I'm using a variety of versions, always the one that comes with my Xubuntu, and that may be any of the LTS versions currently supported.
    – 4dummies
    May 29, 2020 at 18:42

1 Answer 1

2

On the latest XFCE 4.14 there is a command:

xfce4-session-logout

Usage:
  xfce4-session-logout [OPTION…] 

Help Options:
  -?, --help               Show help options
  --help-all               Show all help options
  --help-gtk               Show GTK+ Options

Application Options:
  -l, --logout             Log out without displaying the logout dialog
  -h, --halt               Halt without displaying the logout dialog
  -r, --reboot             Reboot without displaying the logout dialog
  -s, --suspend            Suspend without displaying the logout dialog
  -i, --hibernate          Hibernate without displaying the logout dialog
  -b, --hybrid-sleep       Hybrid Sleep without displaying the logout dialog
  -u, --switch-user        Switch user without displaying the logout dialog
  -f, --fast               Log out quickly; don't save the session
  -V, --version            Print version information and exit
  --display=DISPLAY        X display to use

Is it that what you're looking for?

3
  • That worked on my main laptop running Xubunu 18.04.4. Yippee!
    – 4dummies
    May 29, 2020 at 18:58
  • it also appears to be present in a much older 16.04 partition that I have not tested. Thanks again.
    – 4dummies
    May 29, 2020 at 19:22
  • cool, I wasn't sure so I thought I'd better ask. That is what makes XFCE rock. Far more configurable as GNOME.
    – kanehekili
    May 29, 2020 at 20:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.