Create a program to logout

Kevin Krammer kevin.krammer at
Tue Sep 28 18:22:17 BST 2004

On Tuesday 28 September 2004 19:08, Carlos Pacheco wrote:
> Hi !
> I have a specific user in my system for whom the panel is not loaded,
> neither the trash icon. It only has a link in the desktop that opens the
> konqueror.
> I want to make another link in the desktop so that when the user clicks it,
> a logout is made. As there's not a binary file that executes the logout, do
> I have to make my own binary to logout using the requestShutDown method ?

You can try to call the session managers logout functio through dcop
dcop ksmserver default logout a b c
where a, b and c are numeric values controlling the type of logout 
(with/without dialog, etc)
If I remember correctly 0 2 0 is immidiate logout without dialog


Kevin Krammer <kevin.krammer at>
Qt/KDE Developer, Debian User - German Unix/Linux programming forum - Qt programming forum
This message is from the kde mailing list.
Account management:
More info:

More information about the kde mailing list