You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

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