Need help: Idle X-user?
Hi -devel, the program timeoutd was originally written when using X was not a matter of course: timeoutd loggs user out when they reached timeout-restrictions like max. login-time, max. idle-time, etc. Some users asked for X-Support. Well, X works well with No login allowed at all and Login restricted to max. X minutes, but it does not work with Logout, when user U was idle Yminutes. Support for X and idle-logout is not included within timeoutd. My question is: Is there any way to querry how long a X-user is idle? If not, do you think it's okay to write something like IDLE-Logout does not work with X into Readme.Debian and into the config-file(,manpage, ...)? I found no way to check if a user is idle without using extra libraries, and if I use extra libaries, new depencies are needed wich users don't need if they have no X on their box. (these extra-depencies may depend on X, so they need X, etc...) thank you, Dennis
Re: Need help: Idle X-user?
Dennis Stampfer [EMAIL PROTECTED] writes: Hi -devel, the program timeoutd was originally written when using X was not a matter of course: timeoutd loggs user out when they reached timeout-restrictions like max. login-time, max. idle-time, etc. Some users asked for X-Support. Well, X works well with No login allowed at all and Login restricted to max. X minutes, but it does not work with Logout, when user U was idle Yminutes. Support for X and idle-logout is not included within timeoutd. My question is: Is there any way to querry how long a X-user is idle? If not, do you think it's okay to write something like IDLE-Logout does not work with X into Readme.Debian and into the config-file(,manpage, ...)? I found no way to check if a user is idle without using extra libraries, and if I use extra libaries, new depencies are needed wich users don't need if they have no X on their box. (these extra-depencies may depend on X, so they need X, etc...) thank you, Dennis X screensavers usually have a logout option and there is a way to ask X for the idle time, again screensaver use it. You should look at some of them. MfG Goswin
Re: Need help: Idle X-user?
On Mon, Dec 08, 2003 at 07:09:59PM +0100, Dennis Stampfer wrote: Is there any way to querry how long a X-user is idle? If not, do you think it's okay to write something like IDLE-Logout does not work with X into Readme.Debian and into the config-file(,manpage, ...)? I'm not sure to be honest, but you could look at the code for xscreensavers etc. As for the libraries and a dependency upon Xlibs you can get round this by having the package provide two binaries 'timoutd' and 'timeoutd-x11' or something similar. That way users would install the one they want.. Steve -- # Debian Security Audit Project http://www.steve.org.uk/Debian/
Re: Need help: Idle X-user?
Dennis Stampfer [EMAIL PROTECTED] writes: timeoutd loggs user out when they reached timeout-restrictions like max. login-time, max. idle-time, etc. Is there any way to querry how long a X-user is idle? You might look at the xscreensaver driver source; the basic answer is yes, about four of them, none of which are guaranteed to be there. If not, do you think it's okay to write something like IDLE-Logout does not work with X into Readme.Debian and into the config-file(,manpage, ...)? IMHO the README.Debian file and package description should be sufficient. Mentioning it in the man page wouldn't hurt; I think splattering it in the config file is going a bit far. -- David Maze [EMAIL PROTECTED] http://people.debian.org/~dmaze/ Theoretical politics is interesting. Politicking should be illegal. -- Abra Mitchell