Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

Your Answer


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.