Possibly fix .Xresources not being loaded (closes #600)

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion 2025-03-06 20:06:28 +01:00
parent d80ec8fd1f
commit 78d64ad2a7
No known key found for this signature in database
1 changed files with 4 additions and 4 deletions

View File

@ -89,6 +89,10 @@ if [ "$XDG_SESSION_TYPE" = "x11" ]; then
done
fi
if [ -f "$USERXSESSION" ]; then
. "$USERXSESSION"
fi
if [ -d "$CONFIG_DIRECTORY"/X11/Xresources ]; then
for i in "$CONFIG_DIRECTORY"/X11/Xresources/*; do
[ -f "$i" ] && xrdb -merge "$i"
@ -98,10 +102,6 @@ if [ "$XDG_SESSION_TYPE" = "x11" ]; then
fi
[ -f "$HOME"/.Xresources ] && xrdb -merge "$HOME"/.Xresources
[ -f "$XDG_CONFIG_HOME"/X11/Xresources ] && xrdb -merge "$XDG_CONFIG_HOME"/X11/Xresources
if [ -f "$USERXSESSION" ]; then
. "$USERXSESSION"
fi
fi
exec "$@"