kiosk style autologout

Registered by Kyle Raglin

I have set up many computers for families who have children of different age groups. Many people share a single computer that has multiple user IDs. Often new users forget to logout, allowing the next person access to all their files, browser history, etc. (some of which may contain material inappropriate for younger kids). Often people may think they are using there own account, when in fact they're using someone else's. There are some programs that address this issue for terminal sessions, but I've found nothing Gnome.

Blueprint information

Status:
Started
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Drafting
Series goal:
Proposed for intrepid
Implementation:
Started
Milestone target:
milestone icon ubuntu-8.10
Started by
Kyle Raglin

Related branches

Sprints

Whiteboard

Set the user's screensaver to "Blank screen".
Copy all three scripts to /usr/local/bin

"autologout" is a custom script that can be added to a user's Prefences > Sessions > Starup Programs (in Gnome).
It uses a while loop to continuously call a "screensaveractive" script (every 5 seconds). The final custom script is only called if the exit status of the second = 0.

"screensaveractive" is a custom script that uses
"gnome-screensaver-command" to check the state of the screensaver. If the screensaver is NOT active, the script sets an exit status of 1, in which case, "autologout" continues looping. Otherwise, if the screensaver IS active, "screensaveractive" sets an exit status of 0, in which case, "autologout" will continue on to call the final custom script.

"forcelogout" is a custom script that uses
"gnome-session-save" to save, then kill the session.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.