Re: Timeout for webkiosk
Matthew Allum <[email protected]>
| Newsgroups | gmane.comp.handhelds.matchbox |
|---|---|
| Message-ID | <[email protected]> |
Hi; on Tue, Dec 02, 2003 at 01:11:55PM +0200, Matti Lattu wrote: > > I've started to use Matchbox in an application that it probably was not > intented to be used. When trying to find a decent wm for my webkiosk > project (http://www.edu.helsinki.fi/atk/ltsp_kiosk/) Matchbox caught my > eye, since it is easy to customise. In this case, customisation means > that you can compile it in a very stripped form and thus making the box > a bit harder to hack. Also, the Matchbox binary is very compact and it > requires no run-time configuration. > This is great :-) I have always hoped matchbox would be of use in kiosk like platforms. > However, there is one feature that I miss. My users are logging in with > their usernames and they are lazy to log out. Would it be hard to add a > timeout feature that runs a magic command when no user activity has been > observed for a while? Which parts of the code should I be looking? > Hmm, I think it would probably be better to add this as a separate (simple) application. It would check for periods of no user activity ( checking keyboard and mouse in /proc/interupts ? ) and then simply kill the matchbox process on a timeout. If you were to hack it into matchbox, Id add something to wm_event_loop() in wm.c that tracks the lack of mouse / keyboard events over a period of time. Many thanks + good luck; -- Matthew