diff options
author | Simon Rettberg | 2023-05-03 11:16:37 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-05-03 11:16:37 +0200 |
commit | 14ef110e8f560be95b618025341149ddf016d925 (patch) | |
tree | b3aae89bf278dd014f789dfa170c48d2b0f55149 /core/modules/xorg | |
parent | [looking-glass-client] Update to B6 (diff) | |
download | mltk-14ef110e8f560be95b618025341149ddf016d925.tar.gz mltk-14ef110e8f560be95b618025341149ddf016d925.tar.xz mltk-14ef110e8f560be95b618025341149ddf016d925.zip |
[lightdm-greeter-bwlp/xorg] Fix: lightdm restarts on failed auth
Diffstat (limited to 'core/modules/xorg')
-rwxr-xr-x | core/modules/xorg/data/etc/X11/Xreset | 5 | ||||
-rwxr-xr-x | core/modules/xorg/data/etc/X11/Xsession-setup | 5 | ||||
-rwxr-xr-x | core/modules/xorg/data/etc/X11/Xsetup | 5 |
3 files changed, 14 insertions, 1 deletions
diff --git a/core/modules/xorg/data/etc/X11/Xreset b/core/modules/xorg/data/etc/X11/Xreset index a0f436cd..23048ab9 100755 --- a/core/modules/xorg/data/etc/X11/Xreset +++ b/core/modules/xorg/data/etc/X11/Xreset @@ -5,6 +5,11 @@ # Xreset - run as root after session exits # +# Only run this if a session was actually started, as lightdm also calls +# this script on every failed login attempt +[ -e "/run/openslx/ldm-session-$DISPLAY" ] || exit 0 +rm -f -- "/run/openslx/ldm-session-$DISPLAY" + export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/openslx/sbin:/opt/openslx/bin" PROGNAME=Xreset diff --git a/core/modules/xorg/data/etc/X11/Xsession-setup b/core/modules/xorg/data/etc/X11/Xsession-setup new file mode 100755 index 00000000..753e56da --- /dev/null +++ b/core/modules/xorg/data/etc/X11/Xsession-setup @@ -0,0 +1,5 @@ +#!/bin/ash + +# Marker that a session started (Xreset) +touch "/run/openslx/ldm-session-$DISPLAY" +exit 0 diff --git a/core/modules/xorg/data/etc/X11/Xsetup b/core/modules/xorg/data/etc/X11/Xsetup index b93d7bd6..d9e33617 100755 --- a/core/modules/xorg/data/etc/X11/Xsetup +++ b/core/modules/xorg/data/etc/X11/Xsetup @@ -3,10 +3,13 @@ # /etc/X11/Xsetup # # Xsetup is executed once before the greeter starts (as root) -# +# export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/openslx/sbin:/opt/openslx/bin" +# Marker that a session actually started (Xreset) +rm -f -- "/run/openslx/ldm-session-$DISPLAY" + SESSIONDIR="/etc/X11/Xsetup.d" if [ -d "$SESSIONDIR" ]; then |