Run a script in the background to poll if the screen saver is running
and kill the session if it is. You can look at the output of
"gnome-screensaver-command -q".
e.g.
#!/bin/bash
while true; do
sleep 60s;
# first make sure gnome-screensaver is running first
gnome-screensaver-command -q > /dev/null 2>&1 || continue
# now check if the screensaver has been activated
if ! (gnome-screensaver-command -q | grep 'inactive' > /dev/null); then
# kill the session
# how? maybe this:
kill 0 -1
fi;
done
Put that in a file and run it in the background of your startup script.
On 26 May 2010 12:33, Michael Jinks <[email protected]> wrote:
> Our Sun Rays are walk-up public terminals. Our Windows desktop servers
> are configured to log the user off after a certain number of inactive
> minutes, and they don't allow locking screen savers. So far I haven't
> been able to find a way to make the GNOME screensaver behave the same
> way.
>
> Is there a setting (or an add-on app, maybe) which will do what we want?
>
> Thanks,
> --Michael
> _______________________________________________
> SunRay-Users mailing list
> [email protected]
> http://www.filibeto.org/mailman/listinfo/sunray-users
>
--
Kind regards,
John Francis
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users