Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
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.