[Kde-kiosk] Idle Logout
Dan Brough
kde-kiosk@mail.kde.org
Wed, 11 Dec 2002 13:49:57 +1300
On Tue, 10 Dec 2002 23:21, Peter wrote:
> 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 specif=
ied
> > > 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 lock=
ed).
> >
> > "dcop kdesktop KDesktopIface logout"
> >
> > will logout the current user.
>
> this will first ask the user the question, will it not?
>
If you have the "confirm logout" session preference set, then, yes.
otherwise ,"dcop ksmserver ksmserver logout 0 0 0" will log the user o=
ut,
overriding the confirm dialog, also...
"dcop "ksmserver ksmserver logout 0 1 1"
will reboot the machine.
Does anyone know where these mysterious dcop options are documented?
> > Now write a script that routinely checks to see if the screensaver i=
s up
> > (and log them out when it is) and stick it in every users .kde/Autos=
tart
> > 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
>
I found one,
Its the xscreensaver program from http://www.jwz.org/xscreensaver/,
(or the x11-misc/xscreensaver gentoo package).
I added the line=20
-=09=09=09=09dcop ksmserver ksmserver logout 0 0 0 \n\
to my .xscreensaver file, which gives me a new xscreensaver "Dcop" that I=
can=20
select in the xscreensaver preferences.
Me.
--=20
###################################################################
Dan Brough - Kiosk And Display Systems
http://www.kads.co.nz
Wellington Airport Tue 10 Dec 2002 21:00 Wind: 29 KPH NW Temperature: 17C
1006 hPa Few clouds at 4 thousand feet;Broken clouds at 25 thousand feet
=09THE LESSER-KNOWN PROGRAMMING LANGUAGES #14 -- VALGOL
=09VALGOL is enjoying a dramatic surge of popularity across the
industry. VALGOL commands include REALLY, LIKE, WELL, and Y*KNOW.
Variables are assigned with the =3DLIKE and =3DTOTALLY operators. Other
operators include the "California booleans", AX and NOWAY. Loops are
accomplished with the FOR SURE construct. A simple example:
=09LIKE, Y*KNOW(I MEAN)START
=09IF PIZZA=09=3DLIKE BITCHEN AND
=09GUY=09=09=3DLIKE TUBULAR AND
=09VALLEY GIRL=09=3DLIKE GRODY**MAX(FERSURE)**2
=09THEN
=09=09FOR I =3DLIKE 1 TO OH*MAYBE 100
=09=09=09DO*WAH - (DITTY**2); BARF(I)=3DTOTALLY GROSS(OUT)
=09=09SURE
=09LIKE, BAG THIS PROGRAM; REALLY; LIKE TOTALLY(Y*KNOW); IM*SURE
=09GOTO THE MALL
=09VALGOL is also characterized by its unfriendly error messages. For
example, when the user makes a syntax error, the interpreter displays the
message GAG ME WITH A SPOON! A successful compile may be termed MAXIMALL=
Y
AWESOME!
###################################################################