Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 use Qt Creator to manage my C++ codes on xubuntu 12.04 LTS. I have a bunch of environment variables defined in .bashrc_vars that are loaded in .bashrc. These variables are required for building my application and I need Qt Creator to load them on start up.

If I start Qt Creator from terminal, the variables are loaded but when I click on the icon they don't. How can I fix this?

share|improve this question
up vote 3 down vote accepted

answer you can find here... /etc/profile not being sourced

So you need define your vars in ~/.profile and make sure that your login shell read that file. For instance gnome-terminal does read ~/.profile at start up.

share|improve this answer

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.