This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 35935 - bash not processing /etc/profile with gnome
bash not processing /etc/profile with gnome
Status: CLOSED DUPLICATE of bug 32408
Product: Red Hat Linux
Classification: Retired
Component: xinitrc (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Havoc Pennington
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-04-14 13:17 EDT by Merten Gustafson
Modified: 2007-04-18 12:32 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-05-19 17:20:56 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Merten Gustafson 2001-04-14 13:17:43 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
not executed.

Reproducible: Always
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
Comment 1 Bernhard Rosenkraenzer 2001-04-15 15:48:43 EDT
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.

Comment 2 Merten Gustafson 2001-04-17 14:25:48 EDT
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.

Comment 3 Havoc Pennington 2001-04-18 18:46:58 EDT
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.
Comment 4 Merten Gustafson 2001-04-19 17:52:43 EDT
Where is that prefs option?
Comment 5 Havoc Pennington 2001-04-19 18:34:38 EDT
On the first notebook tab, "use --login by default"
Comment 6 Alex Kanavin 2001-04-30 06:20:32 EDT
This is the duplicate of the bug #32408, please see it for the accurate problem
description and a proposed fix which I fully support!
Comment 7 Alan Cox 2001-05-19 16:29:11 EDT
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
Comment 8 Merten Gustafson 2001-05-19 17:20:52 EDT
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
the resolution.

Besides, the -On the first notebook tab, "use --login by default"- entry didnt
give me much help.
Comment 9 Havoc Pennington 2001-05-19 18:34:16 EDT
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 ***

Note You need to log in before you can comment on or make changes to this bug.