Alt+F2 command to open "close session+change user" dialog?

Hello:

I would like to know which command should I enter in the execute dialog (opened with Alt+F2) so the dialog to close session and change the user opens.

Thank you

I found this on the net and it did work for me, this is for KDE users only:

For KDE 3.x, I use the command:

$ dcop --all-sessions --user username ksmserver default logout 0 0 0

For KDE 4.x, make sure the environment variable DBUS_SESSION_BUS_ADDRESS is set for the appropriate session.
You can usually find this in /usr/home/username/.dbus/session-bus/. Then use the command:

$ qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout 0 0 0
See if this was what you were looking for.

Thank You,

Hi & thanks:

Sorry, I forgot to say that the openSUSE I use has GNOME. Just in case I’ve tried those 2 options whit no success, as expected.

Any other ideas?

Thanks?

Hi
You need to use the command;


gnome-session-save --logout-dialog

Use the following (in a terminal session) to see other command options;


gnome-session-save --help

Hi & thanks:

Sorry, I forgot to say that the openSUSE I use has GNOME. Just in case I’ve tried those 2 options whit no success, as expected.

Any other ideas?

Thanks?
It looks like malcolmlewis has got you covered there j6w2 as you did not specify the desktop you were using in your first message.

Thank You,

It works !!

You’re great, guys!! :slight_smile:

Thanks to you I’ve found the equivalent to open the shutdown dialog:

gnome-session-save --shutdown-dialog

This is the last dialog we see when using the computer. It gives the possibility to switch or turn the PC off, reboot the machine, suspend it or hibernate it.

Thanks a lot!