Re: autologout without shutdown?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtforum.org

Attachment: pgpe9Sh2pJT4m.pgp
Description: PGP signature

___________________________________________________
.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux