setup.sh: Unset display for normal WM

The wlroot refused to create X11 backend when DISPLAY is set. This
makes most of the wlroot-based WM exit since they cannot create backend.
Therefore, we unset DISPLAY in setup.sh to allow normal x11/wayland wm
to start.

See: https://github.com/swaywm/wlroots/issues/1930
This commit is contained in:
ShengYi Hung 2026-01-04 13:28:52 +08:00
parent c0c400e0b6
commit c0ffcf22ac
1 changed files with 1 additions and 0 deletions

View File

@ -104,4 +104,5 @@ if [ "$XDG_SESSION_TYPE" = "x11" ]; then
[ -f "$XDG_CONFIG_HOME"/X11/Xresources ] && xrdb -merge "$XDG_CONFIG_HOME"/X11/Xresources
fi
unset DISPLAY
exec "$@"