autologout without shutdown?
Kevin Krammer
kevin.krammer at gmx.at
Fri Dec 23 22:09:16 GMT 2005
On Friday 23 December 2005 21:34, Markus Grabner wrote:
> Am Mittwoch, 21. Dezember 2005 13:39 schrieb Kevin Krammer:
> > Maybe if ou configure KDM to not allow shutdown by normal users.
>
> Ok, thanks for the hint, then indeed the machine returns to the login
> screen after the timeout. However, I still want to allow users to shut down
> or reboot, I just want to prevent them from indefinitely locking a machine.
> Is such a configuration possible with the autologout feature?
I had a look at the code.
The problem is in kdesktop_lock. It does a DCOP call to ksmserver's logout()
function like this (using commandline DCOP syntax for demonstration):
dcop ksmserver ksmsever logout 0 2 0
where "2" unfortunately means "halt" :(
In case you have the option of patching kdesktop_lock the code is in
kdebase/kdesktop/lock/autologout.cc method logout.
I'll check if there is a bug report for this and add one if there isn't
Cheers,
Kevin
--
Kevin Krammer <kevin.krammer at gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtforum.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde/attachments/20051223/68288f3c/attachment.sig>
-------------- next part --------------
___________________________________________________
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