Create a program to logout

Kevin Krammer kevin.krammer at gmx.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

Cheers,
Kevin

-- 
Kevin Krammer <kevin.krammer at gmx.at>
Qt/KDE Developer, Debian User
www.mrunix.de - German Unix/Linux programming forum
www.qtforum.org - Qt programming forum
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list