[Kde-kiosk] Idle Logout
Peter
kde-kiosk@mail.kde.org
Tue, 10 Dec 2002 11:21:40 +0100
Hello,
Dan Brough writes:
> On Tue, 10 Dec 2002 18:53, Ian White wrote:
> > Has anybody found a way of forcing a user to logout after a specified
> > amount of idle time? Everybody using these terminals will have to log in
> > for usage tracking, etc. so I don't want people using somebody elses
> > abandoned login.
> >
>
> Heres my naff way of doing it...
>
> running,
>
> "dcop kdesktop KScreensaverIface isBlanked"
>
> tells you whether the screensaver is on (or the screen has been locked).
>
> "dcop kdesktop KDesktopIface logout"
>
> will logout the current user.
this will first ask the user the question, will it not?
>
> Now write a script that routinely checks to see if the screensaver is up
> (and log them out when it is) and stick it in every users .kde/Autostart
> folder to startup when the user logs on.
>
Isn't there a screensaver that allows a randomly chosen program or
script to execute? you could then call
`dcop ksmserver ksmserver logout 0 1 1'
instead of a screensaver
just my 2Cent
--
Peter Kruse <pk@q-leap.com>
Q-Leap Networks GmbH
+497071-703171