Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95998 - hb-working-variables should recommend restarting X session after env-update
Summary: hb-working-variables should recommend restarting X session after env-update
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Handbook (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Jonathan Smith (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-13 11:52 UTC by Jan Kundrát (RETIRED)
Modified: 2005-06-22 13:45 UTC (History)
1 user (show)

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 Jan Kundrát (RETIRED) gentoo-dev 2005-06-13 11:52:44 UTC
Currently it says that you have to do `env-update && source /etc/profile`, but this will affect only current shell and its childs; it is required to restart entire X session for the changes to take effect "globaly" (not taking into account daemons). I think the chapter should be expanded with a note about that.
Comment 1 Jonathan Smith (RETIRED) gentoo-dev 2005-06-22 13:12:30 UTC
fixed... thanks
Comment 2 Alin Dobre (RETIRED) gentoo-dev 2005-06-22 13:26:40 UTC
a change applied to the current shell affects only that shell's *childs*. not
parents. for example, if i write 'export somevar=something' in a X terminal's
shell, 'somevar' will be available only in shells/terminals opened *from* that
terminal/shell. (1) if you open a parallel terminal (with the same parent as the
first shell/terminal, in this case X's/WM's shell), 'somevar' won't be
available, and more, (2) if you restart X, then 'somevar' will still be
unavailable, as you actually restarted the parent shell, which was not affected
by 'somevar'.
jonathan, i think you have somehow complicated your statement (added <note>) in
the guide, leading to incorrectness.
so, as a conclusion, if i write 'source /etc/profile' in a terminal and then
restart X, that 'source' command has no effect on the new X session and
terminals/shells opened from it.

to write something about restarting X, you should state something like:
in a console (/dev/vc/*) write /etc/init.d/xdm stop && source /etc/profile &&
/etc/init.d/xdm start for changes to take effect.
Comment 3 Jonathan Smith (RETIRED) gentoo-dev 2005-06-22 13:45:41 UTC
fixed, again

thanks, alin. i think what i had was right, but could be misleading