Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11929 - emerge xfree does not include /usr/X11/bin in path
Summary: emerge xfree does not include /usr/X11/bin in path
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 All
: Low trivial
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-10 18:34 UTC by Joseph Turian
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Turian 2002-12-10 18:34:13 UTC
I just switched to Gentoo (from Debian, FWIW) and have successfully installed 
basic console apps and rebooted. I then ran "emerge xfree" and compiled X 
windows, as described in the "Gentoo Linux Desktop Configuration Guide".

However, I cannot run startx without including "/usr/X11R6/bin/" to my path.
Is there a way this can be added automatically? Of course, if I log in to a 
new console, it will be in my path. But can it be added automatically so that 
after "emerge xfree" I can go about my business and run X apps without doing 
anything else?
Comment 1 SpanKY gentoo-dev 2002-12-10 18:39:23 UTC
you have to run `source /etc/profile` when environment variables are updated 
Comment 2 Joseph Turian 2002-12-10 21:25:44 UTC
Let me point out that I personally have resolved this issue (I know how 
to "source /etc/profile"), but that other people reading the "Gentoo Linux 
Desktop Configuration Guide" may not know how to.

What I propose is that the ebuild script for xfree somehow alter the user's 
environment variables (although I'm not sure if a spawned process can do this) 
OR that the documentation be updated so that this is made clear.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-15 17:39:02 UTC
You have to either:

1) source /etc/profile

2) log out and then in again to update the environment

3) reboot

Its a known thing in unix like environments that after you changed /etc/profile
or any other script that set environment at login time, that you have to
either source, or log out and back in to update your environment.

The other solution is to set all possible PATH's or what ever by default,
but that is ugly IMHO.