LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how can custom application launcher use my environmental variables (https://www.linuxquestions.org/questions/linux-software-2/how-can-custom-application-launcher-use-my-environmental-variables-558081/)

tacca 05-31-2007 03:14 PM

how can custom application launcher use my environmental variables
 
hi all

i made a new custom application launcher in the gnome panel
the application need to run with a terminal
AND it need several environmental variables
i set the variables in my .bashrc
but this launcher apparently does not read my .bashrc
so anyone can show me where should i declare the environmental varibles so that my custom launcher can get them ?

thanks

anomie 06-01-2007 02:48 PM

Export them to the shell and its children.

$ export VAR1=blah ; export VAR2=mmm ; some-custom-app.bash

... or source in .bashrc

$ . ~/.bashrc ; some-custom-app.bash

The first option is probably better.


All times are GMT -5. The time now is 06:29 PM.