dman wrote: >Do you mean when you start a terminal in X you don't have ~/bin in >your path? > >All settings (such as $PATH) persist through the life of the shell. >If you start another shell you start from the beginning again (after >reading the proper config files). > >IIRC .bash_profile is executed on login only. When you start an xterm >you aren't logging in so it isn't executed. The .bashrc is run >whenever bash is started. I put all the config I wanted in my .bashrc >and my .bash_profile has the following at the top : > > if [ -f ~/.bashrc ] ; then > source ~/.bashrc > fi > >so I get the same effect when I login as when I start a shell any >other way.
However, other programs started directly from X will not benefit. The more complete solution is to identify the script that starts your window manager and make sure that environment variables are correctly set and exported before the window manager starts. The environment will be inherited by every program, though of course it can be overridden by .bashrc. /etc/environment can be used to set variables, but it isn't supposed to be shell script so you can't use it to export variables. -- Oliver Elphick [EMAIL PROTECTED] Isle of Wight http://www.lfix.co.uk/oliver PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47 GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C ======================================== "Praying always with all prayer and supplication in the Spirit, and watching thereunto with all perseverance and supplication for all saints." Ephesians 6:18