View Single Post
  #4   (View Single Post)  
Old 28th February 2009
fbsduser fbsduser is offline
Shell Scout
 
Join Date: Aug 2008
Posts: 110
Default

Quote:
Originally Posted by BSDKaffee View Post
Using killall isn't a good idea for KDE. A better to logout of KDE via the commandline is through dcop for KDE 3.x or dbus for KDE 4.x.

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
Sory for that, It's been quite a long time since I last used KDE (around 2.x), I have been in gnome since.
Reply With Quote