[ubuntu-uk] Setting PATH and other env variables

Sean Miller 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...

export YYY=1

...to the bottom of .bash_profile, and then typing "su - <username>" and
your password...

$ env | grep YYY

...should return...
[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...
URL: https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20080219/5fb7128d/attachment.htm 

More information about the ubuntu-uk mailing list