I have many environment variables set with 'export' in my ~/.bashrc. My .profile sources my .bashrc with
source /home/doriad/.bashrc
However, QtCreator doesn't seem to know about these environment variables. If, instead, I put the exports directly in the .profile, QtCreator has them correctly. Any suggestions on what I'm doing wrong here?
Thanks for providing you .profile and .bashrc.
Most probably this is the cause found in your .bashrc
:
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
In non-interactive mode, your .bashrc
will just return, skipping any export below that.