Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have noticed that the environment variables I export in my .profile or .bashrc files are not available to applications started via a desktop shortcut. At least to my IDE. They are available if I start it from terminal.

Do I really have to modify /etc/profile to make the variables accessible to every program? I would prefer having them user-specific. I am sure there's a better way, but I lack the experience.

I am running Mint 11.

Thank you

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

Gnome runs a startup script in ~/.gnomerc at login time. If you add any env variables you want to this file, they should then be exposed to any desktop application you run. This is then a user specific solution.

share|improve this answer
    
Worked fine. Thank you –  kostja Jan 11 '12 at 6:13
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.