Fixed a bug in generated .xinitrc files. Make sure xprofile variables are up to date.

This commit is contained in:
Storm Dragon
2026-03-01 18:00:12 -05:00
parent 7d37222d54
commit f635091992

11
i38.sh
View File

@@ -355,18 +355,17 @@ cat << 'EOF' > ~/.xinitrc
# #
# Executed by startx (run your window manager from here) # Executed by startx (run your window manager from here)
[[ -f ~/.Xresources ]] && xrdb -merge -I\$HOME ~/.Xresources [ -f "$HOME/.Xresources" ] && xrdb -merge -I"$HOME" "$HOME/.Xresources"
if [ -d /etc/X11/xinit/xinitrc.d ]; then if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do for f in /etc/X11/xinit/xinitrc.d/?*.sh; do
# shellcheck disable=SC2154 [ -r "$f" ] && . "$f"
[ -x "$f" ] && . "$f"
done done
unset f unset f
fi fi
[ -f /etc/xprofile ] && . /etc/xprofile [ -f /etc/xprofile ] && . /etc/xprofile
[ -f ~/.xprofile ] && . ~/.xprofile [ -f "$HOME/.xprofile" ] && . "$HOME/.xprofile"
EOF EOF
echo "$sessionCommand" >> ~/.xinitrc echo "$sessionCommand" >> ~/.xinitrc
chmod +x ~/.xinitrc chmod +x ~/.xinitrc
@@ -379,6 +378,8 @@ exit 0
fi fi
fi fi
cat << 'EOF' > ~/.xprofile cat << 'EOF' > ~/.xprofile
export XDG_CURRENT_DESKTOP=i3
export XDG_SESSION_DESKTOP=i3
# Accessibility variables # Accessibility variables
export ACCESSIBILITY_ENABLED=1 export ACCESSIBILITY_ENABLED=1
export CHROME_FLAGS="--force-renderer-accessibility" export CHROME_FLAGS="--force-renderer-accessibility"