[Bug 48876] Re: gnome-session fails when "alias ls='ls --color'" in .profile
Matthew Wang
dotwayman at gmail.com
Sat Aug 5 12:55:35 UTC 2006
I encountered this problem in 6.06 today. If you have set 'ls' as an
alias with argument '--color' in /etc/profile or $HOME/profile, it will
be triggered.
The root cause is that, the script /etc/gdm/Xsession will source
/etc/profile and $HOME/.profile, then it use "ls $1" to read
/etc/X11/Xsession.d, the ANSI color control characters in its output
will cause the problem.
Here's the fix: modify /etc/gdm/Xsession, change line 82
for F in $(ls $1); do
to
for F in $(/bin/ls $1); do
--
gnome-session fails when "alias ls='ls --color'" in .profile
https://launchpad.net/bugs/48876
More information about the desktop-bugs
mailing list