Blank screen while starting Xorg session from startxfce4 w/ argument :DISPLAY > 0
How to reproduce.
- System: Arch Linux 5.19.13, xorg-xinit 1.4.1, xfce4-session 4.16.0
- Remove a Display Manager.
- Remove a
~/.xinitrc
and~/.xserverrc
. - Run
exec startxfce4 -- :1
on VT console login.
Solution.
The wrong order for xinit
arguments in scripts/startxfce4.in
:
SERVERRC="vt$XDG_VTNR $SERVERRC"
must be SERVERRC="$SERVERRC vt$XDG_VTNR"
Because of, SERVERRC
may contain DISPLAY argument, and xinit requires this one in very strict position:
xinit [ [ client ] options ... ] [ -- [ server ] [ display ] options ... ]