LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to specify environment variables in KDE (http://www.linuxquestions.org/questions/linux-software-2/how-to-specify-environment-variables-in-kde-498049/)

anupamsr 11-02-2006 05:38 PM

How to specify environment variables in KDE
 
Hi all!

I want to setup an environment variable when I am working in Linux. I have added this to my .bashrc and thus it works in Konsole. But I want to set this environment variable globally. Is there a way to do so?

bhert 11-02-2006 05:54 PM

export makes it global ,at least that is what I think it is , if that is what you mean

export PATH=$PATH:/path/to/file


-bhert

anupamsr 11-02-2006 08:55 PM

Quote:

Originally Posted by bhert
export makes it global ,at least that is what I think it is , if that is what you mean

export PATH=$PATH:/path/to/file


-bhert

No! No! I am asking where to specify this so that it is available to even those applications which are launched by K Menu.

HappyTux 11-02-2006 09:29 PM

Quote:

Originally Posted by anupamsr
No! No! I am asking where to specify this so that it is available to even those applications which are launched by K Menu.

I believe you can put a script in the ~/.kde/share/env/ directory to have it executed on kde startup.

studioj 11-02-2006 09:29 PM

well the common way is to put junk like that in ~/.bash_profile
it should work also in ~/.bashrc because often .bashrc is sourced from .bash_profile

if you mean global like for all users then /etc/profile

the point you are missing is that all applications lauched as a particular user
no matter how from a menu or whatever
are launched as children to the original user login shell and inherit (get a copy of) all environmental variables.


All times are GMT -5. The time now is 02:00 AM.