Allow sourcing of additional scripts from ~/.xinitrc.d.

This commit is contained in:
Cyteen May 2020-02-23 11:24:37 +00:00
parent f9b58a9c83
commit 322fc85ca2
1 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,13 @@ case $session in
# No known session, try to run it as command
*) exec $DEFAULT_SESSION ;;
esac
if [ -d ${HOME}/.xinitrc.d ]; then
for f in ${HOME}/.xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
EOF