[ubuntu-uk] Setting PATH and other env variables
sean at seanmiller.net
Tue Feb 19 11:28:24 GMT 2008
I think there's some misunderstanding here... if you put .bash_profile in
your home directory the settings will be applied.
BUT, the way that it works is that the settings are applied at the time of
LOGIN, therefore if you simply open new Gnome sessions the script won't be
run, as the new window will simply inherit the details at the time of
You can prove this by adding...
...to the bottom of .bash_profile, and then typing "su - <username>" and
$ env | grep YYY
[seanmiller at s15247463 ~]$ su - seanmiller
[seanmiller at s15247463 ~]$ env | grep YYY
[seanmiller at s15247463 ~]$
If you then log out of Gnome altogether and re-login you should find that
your environment is as you wish it to be on every terminal window you open.
Hope that helps,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ubuntu-uk