You are not logged in.

1

Thursday, July 28th 2005, 9:50am

KDE shutdown

Hi, I need some help.
When users are connected in kde, they can logoff and terminate session by pressing the logout/shutdown button in kdemenu.
How can I logoff users form kde using the command line?
I wonder what's the command called by logout/shutdown applet......
Thanks!
Gorgonauta - SuSe9.3 - Kde3.4

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Thursday, July 28th 2005, 12:25pm

You can do that through a DCOP call

#> dcop ksmserver ksmserver logout x y z
Where x, y and z are three numbers, with the following meaning:
x: confirm
http://developer.kde.org/documentation/l…cation.html#w35

y: shutdown
http://developer.kde.org/documentation/l…cation.html#w36

z: mode (when it should happen) http://developer.kde.org/documentation/l…cation.html#w37

Cheers,
_
Qt/KDE Developer
Debian User

3

Thursday, July 28th 2005, 2:53pm

It's working!!
Many thanks!!
Gorgonauta - SuSe9.3 - Kde3.4