Because /etc/X11/chooser.sh does not use echo -n ... to return the name of the session to be executed, it never gives back an "empty" value (if using startx or xinit). Really easy to fix: change echo "${GENTOO_EXEC}" to echo -n "${GENTOO_EXEC}" Please change this to avoid severe user brain damage. Thanks :) Reproducible: Always Steps to Reproduce: 1. edit your .xsession file 2. start X with startx or xinit 3. wonder why you always get the system standard twm and xterm
Somehow i just dont know anymore what the problem was which is solved by changing the last "echo " line to "echo -n ". I cannot reproduce it anymore, made too many changes to these files maybe. Anyway, I still think its a good idea to use "echo -n" here. :/
if you can identify the problem and that echo -n is actually the fix, please re-open this bug.