[Kde-kiosk] Idle Logout/Time Out

Peter kde-kiosk@mail.kde.org
Thu, 12 Dec 2002 10:58:03 +0100


Wout Mertens writes:
 > On Wed, 11 Dec 2002, Peter wrote:
 > > Chris Howells writes:

[snip]

 > >
 > > 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<--------------------------------------
 > 
 > Well, it also works in KDE 2.2.1. But it also pops up the IO transfer
 > window until the jobFinished message, which seems silly to me.

no, it doesn't, thats what the `false' argument is for.

 > 
 > Another way would be to use artsmessage, which has a very high probability
 > of being installed together with KDE. It also doesn't have a timeout, but
 > you could use this construct:
 > 
 > #!/bin/bash
 > artsmessage -w "Are you there?" &
 > sleep 30
 > kill $! 2>/dev/null

yes, this construct would work, and could also be used with the dcop
UIserver thing above.

Greetings,

	Peter

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