Quote:
Originally Posted by
shreeda
I didn't quite get it
. Could you please explain? An example will be useful I think.
You're not trying to measure how long a
proces has been inactive, you're trying to measure how long a
user has been inactive. The process could well still be occasionally busy with other things even when not processing user input.
Configure your window environments to logout after x minutes of inactivity, instead of trying to measure that from the outside in. They actually deal with user input and know when it's happening -- the WM will know that not just keystrokes but mouse movements mean they're not idle, for example.
This will mean that different login methods will need to be controlled in different ways if they can be controlled at all, but has the advantage that it might actually be possible.