Click to See Complete Forum and Search --> : thats strange...please enlighten me


plasmid
06-03-2001, 07:37 PM
I have just noticed something that is probably trivial to fix, only I don't know how to.

if I am at a command prompt, ~/bin is in my path, but if I try to make a launcher in gnome that just gives the command for something in ~/bin, nothing happens. This leads me to believe that gnome gets its paths from someplace other than my environmental variable in .bashrc....does anyone know where this might be?

-plasmid

Craig McPherson
06-03-2001, 10:49 PM
X is in affect a seperate shell that doesn't inherit the environment of your login shell. Can't recall how to set paths for X, though, but I've run across it before. Just use the full path to the command, to be safe.

Strike
06-04-2001, 03:02 AM
It's the difference between an interactive shell and a non-interactive shell (though both are in effect interactive ... never understood the naming). Logging in gets stuff from .bashrc AND .bash_profile (I think), and starting a shell in a console in X is a non-interactive shell (I think). Non-interactive shells get their settings from .bash_profile ONLY. My solution to this is:

cat ~/.bashrc >> ~/.bash_profile
rm -f ~/.bashrc
ln -s ~/.bash_profile ~/.bashrc

That way they are always both the same, no matter which you edit (since there's only one file). Hope this helps.

plasmid
06-04-2001, 12:30 PM
thanks, that explains a lot.

plasmid