summaryrefslogtreecommitdiffstats
path: root/core/modules/xorg/data/etc/X11/Xsetup
blob: d9e3361751ee1169ff12e002142c43410c032c13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/ash
#
# /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
	for file in $SESSIONDIR/*; do
		. $file || slxlog "xsetup" "Xsetup: Could not source $file" "$file"
	done
fi