I think the "XTERM" in /etc/X11/xinit/xinitrc script from ebuild x11-apps/xinit-1.2.0 is a typo for "xterm". I realized that when overlooking at message in startkde ebuild warning about the change kde-4.x => KDE_4. I didn't make it, the script didn't find the correct client (/etc/X11/Sessions/kde-4.3), tried to start the default one and failed that as well. Error message: "/etc/X11/xinit/xinitrc: line 64: exec: XTERM: not found" Reproducible: Always Steps to Reproduce: 1. export XSESSION= 2. startx Actual Results: X server is started and immediately shut down, with error message: /etc/X11/xinit/xinitrc: line 64: exec: XTERM: not found Expected Results: A failsafe environment should be started (xterm). Just lower-case the "XTERM" on /etc/X11/xinit/xinitrc line 48.
Please paste the output of : emerge -pv xinit Thanks
Fixed in 1.2.0-r1. Thanks
Incorrectly fixed. The xinitrc file now contains this line: command=xterm -geometry 80x66+0+0 -name login Which will cause an error like: sh: -geometry: not found
Shit... Then my bash-shell-script-gone-through-cpp skillz are close to 0. Help!
Couple of things I can think of that will work: command=XTERM" -geometry 80x66+0+0 -name login" # only if XTERM has no spaces command=`echo XTERM -geometry 80x66+0+0 -name login` read command <<HEREDOC XTERM -geometry 80x66+0+0 -name login HEREDOC I didn't manage to come up with a way that generates the obvious desired script line. Something with the stringification operator in cpp should have worked, but didn't for me.
Created attachment 210677 [details, diff] Alternate patch to xinitrc.cpp to avoid the problem Alternatively, you could just skip setting $command entirely in the failsafe case, and do this instead (as in the attached patch): if [ $failsafe = "yes" ]; then TWM & XCLOCK -geometry 50x50-1+1 & XTERM -geometry 80x50+494+51 & XTERM -geometry 80x20+494-0 & exec XTERM -geometry 80x66+0+0 -name login else exec $command fi
*** Bug 294984 has been marked as a duplicate of this bug. ***
Fixed in 1.2.0-r2 and in the x11 overlay. Thanks :)