Re: [gdm-list] automaticle loging off



Muylle:

I want to make a multiseat computer for the librarie I work. I want to make that the users logoff out gnome after 30 minutes (otherwise the users always working many hours on the computer and we can't close anymore).

I want when the user login in gdm , it must be timed en it stops working after 30 minutes, the user can perhaps re-login and work another 30 minutes ... How do I do it ?

One way to make this work would be to start a program running in the GDM
PreSession script that causes the user session to exit after a timeout,
or after waiting for a certain amount of idle time, which you could
perhaps get via running a utility like "who".  You can read more about
the PreSession/PostSession hooks in the GDM docs:

  http://www.gnome.org/projects/gdm/docs.html

If you know the user is running GNOME sessions, you could use the
program "gnome-session-save --kill --silent" to actually cause the
session to exit.  If you are using other session types, you'll have
to figure out the similar method to do the same sort of thing.

Rather than just exiting the session, it might be nice to pop-up a
dialog a few minutes earlier warning the user to save any unsaved data,
or giving them the option to extend their session timeout.

Brian


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]