This started out as sort-of on topic for Sun Ray, now I'm definitely wandering into the weeds but I'm hoping somebody here can clue me in anyhow, as I'm not sure where better to ask Solars+GNOME questions.
A couple of weeks ago I posted looking for a way to log off idle GNOME sessions. With some help from the list I have something put together, happy to share if anyone finds it useful, but I'm snagged on a strange problem. In order to make my auto-logoff script work, I need to call it from the GNOME session. So I've adjusted my default.session file to look like this: [Default] num_clients=6 0,id=default0 0,Priority=0 0,RestartCommand=gnome-smproxy --sm-client-id default0 1,id=default1 1,Priority=10 1,RestartCommand=gnome-wm --default-wm gnome-wm --sm-client-id default1 2,id=default2 2,Priority=40 2,RestartCommand=gnome-panel --sm-client-id default2 3,id=default3 3,Priority=40 3,RestartCommand=nautilus --no-default-window --sm-client-id default3 4,id=default4 4,Priority=50 4,RestartCommand=gnome-volcheck -i 30 -z 3 -m cdrom,floppy,zip,jaz,dvdrom --sm-client-id default4 5,id=default5 5,Priority=50 5,RestartCommand=/etc/tasc/sunray/scripts/autologout.sh "autologout.sh" is a ksh script that waits for the screensaver to come on, then kills the session if it stays on past a certain grace period. The trouble is, as long as that fifth client is there, session startup takes a lot longer than it normally would, like a minute or more. The desktop will appear if the user clicks their mouse, but the logoff function doesn't work for a minute or so after session startup. A fairly minor thing, but sure to annoy users. The same thing happens if I replace the call to my script with '/bin/true', or if I replace the contents of the script with "exit 0", so apparently my script itself isn't the problem. Comment out the last client and change num_clients to 5... session is snappy again. So I'm guessing there's some GNOME mojo I'm not wise to. Any idea what it might be? Thanks, --Michael On Tue, May 25, 2010 at 09:33:12PM -0500, Michael Jinks 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 _______________________________________________ SunRay-Users mailing list [email protected] http://www.filibeto.org/mailman/listinfo/sunray-users
