Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#5171 - /etc/profile not sourced by default under xdm/twm

Attached to Project: Arch Linux
Opened by David Scholl (djscholl) - Sunday, 06 August 2006, 11:58 GMT
Last edited by Roman Kyrylych (Romashka) - Saturday, 14 April 2007, 18:20 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To Jan de Groot (JGC)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Under xdm/twm, none of the default login files source /etc/profile, so important elements of the user's PATH are not installed. This can be fixed by adding:
[ -f /etc/profile ] && . /etc/profile
to $HOME/.bash_profile (for bash users).

It appears that this or an equivalent line should be included in the default home directory configuration. I only have xdm installed, so I don't know how gdm or kdm handle it, or other window managers, but I had to source /etc/profile manually on my login. Also see http://bbs.archlinux.org/viewtopic.php?t=18677&highlight=xsession for a recent forum discussion. It appears to be an xdm issue, rather than a twm issue. However, the files involved are owned by the filesystem and bash packages.
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Saturday, 14 April 2007, 18:20 GMT
Reason for closing:  Not a bug
Comment by Aaron Griffin (phrakture) - Wednesday, 28 February 2007, 20:52 GMT
This is not a bug, it is a configuration issue.

bash (and all shells, for that matter) do not source /etc/profile unless they are run as "login shells". This is by design.

http://learnlinux.tsf.org.za/courses/build/shell-scripting/ch02s02.html

Loading...