diff options
author | Simon Rettberg | 2021-03-10 16:29:22 +0100 |
---|---|---|
committer | Simon Rettberg | 2021-03-10 16:43:33 +0100 |
commit | ca36820f5b74005559174c7a9ddc85ae0aa61904 (patch) | |
tree | 06a86ada3c006724f53dd24d294223cd9ad780d8 /modules-available/remoteaccess/baseconfig/getconfig.inc.php | |
parent | [sysconfig] Back-Btn for sshkey-module (diff) | |
download | slx-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.
Diffstat (limited to 'modules-available/remoteaccess/baseconfig/getconfig.inc.php')
-rw-r--r-- | modules-available/remoteaccess/baseconfig/getconfig.inc.php | 6 |
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 |