#595906 gdm3: Can't log in when .gnomerc sources .bashrc

Package:
gdm3
Source:
gdm3
Description:
GNOME Display Manager
Submitter:
Bill Wohler
Date:
2010-09-07 13:30:06 UTC
Severity:
wishlist
#595906#5
Date:
2010-09-07 07:49:45 UTC
From:
To:
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!

#595906#10
Date:
2010-09-07 13:26:53 UTC
From:
To:
severity 595906 wishlist
tag 595906 wontfix
thanks

Le mardi 07 septembre 2010 à 00:49 -0700, Bill Wohler a écrit :

Well, don’t do that.

And what do you suggest to do for those who wish to source
their .zshrc ?

*shrug*