summaryrefslogtreecommitdiffstats
path: root/core/modules/idleaction/data
diff options
context:
space:
mode:
authorSimon Rettberg2022-07-18 17:12:09 +0200
committerSimon Rettberg2022-07-18 17:12:09 +0200
commitef2cfecbd7e13781c01dfc5f58c6892a8bf43085 (patch)
treed2ece10a1ed79a9d52b1457a50288f1169b0691d /core/modules/idleaction/data
parent[run-virt] Add forced logout option to pvs toolbar (diff)
downloadmltk-ef2cfecbd7e13781c01dfc5f58c6892a8bf43085.tar.gz
mltk-ef2cfecbd7e13781c01dfc5f58c6892a8bf43085.tar.xz
mltk-ef2cfecbd7e13781c01dfc5f58c6892a8bf43085.zip
[...] Don't allow locking autologin/guest sessions either
Diffstat (limited to 'core/modules/idleaction/data')
-rwxr-xr-xcore/modules/idleaction/data/etc/X11/Xsession.d/95-xscreensaver2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/modules/idleaction/data/etc/X11/Xsession.d/95-xscreensaver b/core/modules/idleaction/data/etc/X11/Xsession.d/95-xscreensaver
index 441d9243..86a9995a 100755
--- a/core/modules/idleaction/data/etc/X11/Xsession.d/95-xscreensaver
+++ b/core/modules/idleaction/data/etc/X11/Xsession.d/95-xscreensaver
@@ -34,6 +34,8 @@ if command -v xscreensaver; then
elif ! [ "$SBY" -ge 0 ]; then # isNumeric?
SBY=0
fi
+ # Guest session/auto login, don't lock
+ [ "$GUEST_SESSION" = "True" ] && NEVER_LOCK=True
# If web based login, we can't authenticate again as we don't have the password - never lock
if [ -z "$NEVER_LOCK" ]; then
usrname="$( < "/etc/passwd" awk -v "uid=$UID" -F ':' '$3 == uid {print $5; exit}' )"