I would like to have my lab workstations logout a session after the person has
been idle for a certain period of time. After some searching on the web, I got
into
/etc/gconf/schemas/gnome-session.schemas
and set the default value of max_idle_action to ?forced-logout?:
<schema>
<key>/schemas/desktop/gnome/session/max_idle_action</key>
<applyto>/desktop/gnome/session/max_idle_action</applyto>
<owner>gnome</owner>
<type>string</type>
<default>forced-logout</default>
<gettext_domain>gnome-session-2.0</gettext_domain>
<locale name="C">
<short>The action to take after the maximum idle
time</short>
<long>The name of the action to take when the maximum allowed
idle time has been reached. The Delay is specified in the
"max_idle_time" key. Allowed values are: logout, forced-logout. An
empty string disables the action.</long>
</locale>
</schema>
but the system is not logging me out after the max_idle_time. Is there something
I?m missing?
Thanks!
---
Mike VanHorn
Senior Computer Systems Administrator
College of Engineering and Computer Science
Wright State University
265 Russ Engineering Center
937-775-5157
michael.vanhorn at wright.edu
Vanhorn, Mike wrote:> I would like to have my lab workstations logout a session after the person > has been idle for a certain period of time. After some searching on the > web, I got into > > /etc/gconf/schemas/gnome-session.schemas<snip> Seems really complicated. I run KDE, and I believe there's something in kde->system settings that lets me set that. mark
On Jun 8, 2016, at 4:42 PM, Vanhorn, Mike <michael.vanhorn at wright.edu> wrote:> I would like to have my lab workstations logout a session after the person has been idle for a certain period of time. After some searching on the web, I got into > > /etc/gconf/schemas/gnome-session.schemasSo, I?ve found that if you want to enforce gconf policies for workstations, you need to put them in /etc/gconf/gconf.xml.mandatory. For example, this is how we set the screensaver to lock: gconftool-2 --direct \ --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ --type bool \ --set /apps/gnome-screensaver/idle_activation_enabled true gconftool-2 --direct \ --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ --type bool \ --set /apps/gnome-screensaver/lock_enabled true gconftool-2 --direct \ --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ --type int \ --set /apps/gnome-screensaver/idle_delay 15 -- Jonathan Billings <billings at negate.org>
>So, I?ve found that if you want to enforce gconf policies for workstations, you need to put them in /etc/gconf/gconf.xml.mandatory.I tried using that, and it still doesn?t automatically logout. In face, the value I set in gconf.xml.mandatory doesn?t seem to get noticed at all. I set them to different values, and ?gconftool-2 --get? still shows the default values that I set in /etc/gconf/schemas/gnome-session.schemas. --- Mike VanHorn Senior Computer Systems Administrator College of Engineering and Computer Science Wright State University 265 Russ Engineering Center 937-775-5157 michael.vanhorn at wright.edu