Red Hat Bugzilla – Bug 35935
bash not processing /etc/profile with gnome
Last modified: 2007-04-18 12:32:40 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20001108
Logging on as root to linux box using XDM. Starting a gnome terminal.
Preferences stored in /etc/profile are not available, i.e. /etc/profile is
Steps to Reproduce:
1. login as root using XDMCP
2. start gnome terminal
3. echo $MAIL
4. bash --login
5. echo $MAIL
Actual Results: echo $MAIL didn4t print anything until after bash --login
Expected Results: echo $MAIL should result in output after starting shell
This used to work in pre 7.0 installations
If this is a problem, it's a gnome-terminal problem and not a bash problem.
I don't think it's a problem though, since all konsole, xterm, rxvt and
gnome-terminal agree that the shell should not be launched as a login shell.
When logging on to the box using XDM and starting gnome, should4t there be a
first shell executed as login? When logging on to a console the /etc/profile is
executed, I can4t see why logging on using x-windows should be different.
gnome-terminal has a prefs option to run a login shell or not. If you're worried
about X as a whole, that's the Xsession script in the xinitrc package.
Where is that prefs option?
On the first notebook tab, "use --login by default"
This is the duplicate of the bug #32408, please see it for the accurate problem
description and a proposed fix which I fully support!
Agreed. Once I realised it was not about the shell login properties but about X
clients being started with the right options it makes complete sense
I have read the bug description #32408. The fix I believe is in the original bug
report I believe. However, I would preffer if a RedHat support person confirmed
Besides, the -On the first notebook tab, "use --login by default"- entry didnt
give me much help.
Not sure how this will get resolved, but we may as well have only one copy of
the bug, so marking this one duplicate.
*** This bug has been marked as a duplicate of 32408 ***