From c81db6fb991b1906f9dcb6cab345cd57de202e42 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 30 Sep 2022 12:17:37 +0200 Subject: [locationinfo] Disable shutdown timeout if autologin is enabled This is probably only accidentally enabled (from location), as an info-panel is always idle and would then probably shutdown frequently. It currently didn't happen because we already clear the logout timeout, and the shutdown timeout only starts running at the login screen. But we want to change that for when we use autologin manually, or in case of an exam. --- modules-available/locationinfo/inc/locationinfohooks.inc.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules-available/locationinfo/inc/locationinfohooks.inc.php') diff --git a/modules-available/locationinfo/inc/locationinfohooks.inc.php b/modules-available/locationinfo/inc/locationinfohooks.inc.php index 1627f3cd..5b3e2506 100644 --- a/modules-available/locationinfo/inc/locationinfohooks.inc.php +++ b/modules-available/locationinfo/inc/locationinfohooks.inc.php @@ -78,6 +78,9 @@ class LocationInfoHooks ConfigHolder::add('SLX_AUTOLOGIN', '1', 1000); ConfigHolder::add('SLX_ADDONS', '', 1000); } + if (ConfigHolder::get('SLX_AUTOLOGIN')) { + ConfigHolder::add('SLX_SHUTDOWN_TIMEOUT', '', 1000); + } ConfigHolder::add('SLX_LOGOUT_TIMEOUT', '', 1000); ConfigHolder::add('SLX_SCREEN_STANDBY_TIMEOUT', '', 1000); ConfigHolder::add('SLX_SYSTEM_STANDBY_TIMEOUT', '', 1000); -- cgit v1.2.3-55-g7522