[Kde-kiosk] Idle Logout/Time Out

Peter kde-kiosk@mail.kde.org
Wed, 11 Dec 2002 20:39:05 +0100


Chris Howells writes:
 > -----BEGIN PGP SIGNED MESSAGE-----
 > Hash: SHA1
 > 
 > Hi,
 > 
 > On Wednesday 11 December 2002 13:50, Peter wrote:
 > > #!/bin/bash
 > > sleep 900
 > > xmessage -center -timeout 5 "15 min remaining"
 > 
 > IIRC there's a way using dcop to construct an slightly more friendly KDE 
 > information dialog which could say the same thing. I can't remember how to do 
 > this though :(
 > 

well, yes, thats right, but without the timeout option, though...

anyways it would go like this (or at least did in kde 3.0):

--------------------------------------8<--------------------------------------

#!/bin/bash
kio_uiserver
jobid=`dcop kio_uiserver UIServer newJob myApp false`
dcop kio_uiserver UIServer messageBox $jobid 5 "my message" myApp yes no
dcop kio_uiserver UIServer jobFinished $jobid

--------------------------------------8<--------------------------------------


      Peter

-- 
Peter Kruse <pk@q-leap.com>
Q-Leap Networks GmbH
+497071-703171