Environment variable in GNOME, Scientific Linux 6.1

I am using Scientific Linux 6.1. To run the program (DS9) I need to set this environment variable:

export XPA_METHOD=local 

So, I saved it in .bashrc, and there is no problem running the program from the bash terminal. But when I run it in the GUI (for example, by clicking "Open with ds9" in nautilus), this variable is not recognized.

I would really appreciate it if someone could help me set the environment variable in GNOME.

+4
source share
1 answer

Add it to ~ / .profile instead of .bashrc

Edit : log out again and again for the changes to take effect.

+3
source

Source: https://habr.com/ru/post/1390352/


All Articles