diff options
Diffstat (limited to 'core/modules/xorg/data/etc/X11/Xreset')
-rwxr-xr-x | core/modules/xorg/data/etc/X11/Xreset | 5 |
1 files changed, 5 insertions, 0 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 |