Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59146 - /etc/X11/chooser.sh NEVER returns nothing, so user' s .xsession is always ignored when using startx or xinit
Summary: /etc/X11/chooser.sh NEVER returns nothing, so user' s .xsession is always ign...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-02 07:16 UTC by L.Stohlmann
Modified: 2004-09-09 16:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description L.Stohlmann 2004-08-02 07:16:53 UTC
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
Comment 1 L.Stohlmann 2004-08-02 07:36:30 UTC
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.

:/
Comment 2 L.Stohlmann 2004-08-02 07:47:36 UTC
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.

:/
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2004-09-09 16:48:12 UTC
if you can identify the problem and that echo -n is actually the fix, please re-open this bug.