Consider scripts in /etc/X11/xinit/XClients.d as well

This commit is contained in:
Matej Cepl 2009-06-08 20:54:16 +00:00
parent 7fe654eb9e
commit b8c9868779

View File

@ -37,6 +37,12 @@ elif [ -n "$STARTKDE" ]; then
exec "$STARTKDE"
fi
# We should also support /etc/X11/xinit/Xclients.d scripts
XCLIENTS_D=/etc/X11/xinit/Xclients.d
if [ -d "$XCLIENTS_D" -a "$#" -eq 1 -a -x "$XCLIENTS_D/Xclients.$1.sh" ]; then
exec -l $SHELL -c "$SSH_AGENT $XCLIENTS_D/Xclients.$1.sh"
fi
# Failsafe.
# these files are left sitting around by TheNextLevel.