summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2021-03-10 16:29:22 +0100
committerSimon Rettberg2021-03-10 16:43:33 +0100
commitca36820f5b74005559174c7a9ddc85ae0aa61904 (patch)
tree06a86ada3c006724f53dd24d294223cd9ad780d8
parent[sysconfig] Back-Btn for sshkey-module (diff)
downloadslx-admin-ca36820f5b74005559174c7a9ddc85ae0aa61904.tar.gz
slx-admin-ca36820f5b74005559174c7a9ddc85ae0aa61904.tar.xz
slx-admin-ca36820f5b74005559174c7a9ddc85ae0aa61904.zip
[remoteaccess] Don't disable screen saver entirely but disable auto-lock
This way after 30+ minutes we would still pop up the screen saver that would count down to the next logout/reboot/shutdown, so the user gets an idea that the session won't last forever.
-rw-r--r--modules-available/remoteaccess/baseconfig/getconfig.inc.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules-available/remoteaccess/baseconfig/getconfig.inc.php b/modules-available/remoteaccess/baseconfig/getconfig.inc.php
index 3c849b45..6a051737 100644
--- a/modules-available/remoteaccess/baseconfig/getconfig.inc.php
+++ b/modules-available/remoteaccess/baseconfig/getconfig.inc.php
@@ -25,7 +25,11 @@
ConfigHolder::add("SLX_REMOTE_HOST_ACCESS", Property::get(RemoteAccess::PROP_ALLOWED_VNC_NET));
ConfigHolder::add('SLX_RUNMODE_MODULE', 'remoteaccess');
// No saver
- ConfigHolder::add('SLX_SCREEN_SAVER_TIMEOUT', '0', 1000);
+ $saverTimeout = ConfigHolder::get('SLX_SCREEN_SAVER_TIMEOUT');
+ if (!is_numeric($saverTimeout) || $saverTimeout < 1800) {
+ ConfigHolder::add('SLX_SCREEN_SAVER_TIMEOUT', '1800', 1000);
+ }
+ ConfigHolder::add('SLX_SCREEN_SAVER_GRACE_TIME', '86400', 1000);
}
}
})($uuid); \ No newline at end of file