How to logout from a graphical environment from the command line

command linelogoutx11

Part of the beauty of trying out alpha releases of operating systems is that things will break, including things we take for granted. Today it's the turn of the logout button.

So, how do you log out from the desktop environment du jour from the command line?

Best Answer

/usr/bin/gnome-session-save --kill works for me on Fedora 15 Alpha with gnome as my DE. Hope that helps.