Re: [ubuntu-uk] Setting PATH and other env variables
Sean Miller [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: 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 login... That is what I would expect to happen. But something is not quite happening like this. I have added a line touch bash_profile_ran to the file. It is called when I su - username but not when I log into gnome. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/
Re: [ubuntu-uk] Setting PATH and other env variables
Sean Miller [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: What about /etc/profile ? This is fine for customisations that are system wide. But I would like something that is per user. Thanks -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/
Re: [ubuntu-uk] Setting PATH and other env variables
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 login... 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... [EMAIL PROTECTED] ~]$ su - seanmiller Password: [EMAIL PROTECTED] ~]$ env | grep YYY YYY=1 [EMAIL PROTECTED] ~]$ 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, Sean -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/
[ubuntu-uk] Setting PATH and other env variables
Hi What is the correct place to define PATH. I have usally defined it in .bash_profile but this doesnt appear to get called when you start a gnome session. I want to be able to set the PATH when I start a gnome terminal session. BASHRC doesnt seem the right place because you can sometimes end up with things being added to the PATH twice. -- Andrew Black London -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/
Re: [ubuntu-uk] Setting PATH and other env variables
What about /etc/profile ? Sean -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/