$PATH
Jan Morén
jan.moren at lucs.lu.se
Fri Dec 3 10:10:22 UTC 2004
fre 2004-12-03 klockan 10:40 +0100 skrev Wouter Eerdekens:
> On Fri, Dec 03, 2004 at 09:51:24AM +0900, Jan Mor?n wrote:
> > I stick it in ~/.gnomerc, which is arguably wrong, but the only place
> > I've gotten it to work for graphical logins.
> >
>
> add it to .bash_profile, but configure your gnome-terminal or xterm to
> be a "login shell".
Which would have identical results to putting it in .bashrc, woudln't
it? It also means it won't be set at login? You'd need to actually run a
shell before it is set, so it's not a good place for stuff like PATH
setting.
A more general scenario: Let's say you want to set a desktop-wide
environment variable, conditionally, on a per-user basis. It needs to
run at login, propagate to the environment for the desktop, and be run
from the logging-in users home. My solution has been .gnomerc so far,
but I'm open to suggestions.
--
Trust the Computer. The Computer is your friend.
Tel. (Japan) 090-3622 8920 Dr. Jan Morén (mr)
Dept. of Cognitive Science
http://lucs.lu.se/people/jan.moren Lund, Sweden
More information about the ubuntu-users
mailing list