I've had the following line in my .gnomerc for at least 10 years now to
provide environment variables, especially PATH, to my X session:
. ~/.bashrc
This worked well until I installed squeeze this weekend. Once I copied
my $HOME files from backup, I couldn't log in! I was getting all sorts
of weird syntax errors in .xsession-errors. Turns out that these errors
were caused by a link from /bin/sh to /bin/dash "for performance
reasons."
I worked around this problem by running "dpkg-reconfigure dash" and
saying No when asked to link sh to dash.
However, I think it might be better to provide a means to incorporate
one's .bashrc instead when starting the X session. This mechanism might
also be useful for users of other shells as well. Also, what would be
the harm in changing the first line of /etc/gdm3/Xsession (assuming
that's the right file) to read #!/bin/bash instead of #!/bin/sh?
Thanks!