LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   environment variables (https://www.linuxquestions.org/questions/linux-general-1/environment-variables-41565/)

moeminhtun 01-15-2003 08:58 AM

environment variables
 
I used redhat 8.0 and my environment variables are in the .bash_profile in my home directory.

Now I installed the window manager XFCE. But when I log into the XFCE, it didn't detect my environment variables.
What should I do?

Thanks.

trickykid 01-15-2003 09:03 AM

What kind of environment variables are we talking about, like in a terminal or such ?

moeminhtun 01-15-2003 09:20 AM

For example, in the .bash_profile, I give path to the java/bin directory.
Now, the javac command not found. That means it didn't execute the .bash_profile when it log in I think.
I ran the env command and I didn't found my java path and all the environment variables in the .bash_profile.

berry 01-15-2003 09:34 AM

I think you have to use ".profile" for this, because when you use a graphical login, bash doesn't get started.

moeminhtun 01-15-2003 09:50 AM

I got it. I couldn't find the ".profile". But I edit in the ".bashrc" profile. It works.
thanks.


All times are GMT -5. The time now is 05:10 PM.