your console may not be spawning a login shell. thats when /etc/profile is not read (in other words, /etc/profile is read when you spawn a login shell). trying using a standard terminal. or alternatively, put your environment variables in .bashrc in your HOME. and source .bashrc in your .bash_profile.


Joao Pedro Clemente wrote:
I would like to add a JAVA_HOME variable as some of my apps seem to like
it...

I was doing this by exporting it in /etc/profile and it was ok.

I was using my system loging in at console and then doing "startx". Today
I decided to startup kdm (/etc/init.d/kdm start) and when I logged from
there I notisted that the konsoles I opened didn't had the environment
variables I specified.
So I think kdm does not reads /etc/profile and then every think that is
started by kdm also does not get those settings.

What is the correct way to add environment variables then?

Thank you
Joao Clemente




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Reply via email to