Setting environment variables when executing Eclipse via Unity launcher icon
- by Nullptr
My question is a followup for the following:
How to pin Eclipse to the Unity launcher?
I created Eclipse's icon to the Unity launcher based on the selected answer at the above link. However, when I launch Eclipse via this icon, the environment variables are not properly set.
I need to call . /opt/intel/bin/compilervars.sh intel64 to use Intel compiler tools in Eclipse. However, launching via the icon can't do it. Of course, running manually Eclipse on the terminal is okay.
I tried to place . /opt/intel/bin/compilervars.sh intel64 on several places such as /etc/profile and /etc/bash.bashrc. But, still not working.
Where is the best and correct place to call such environment setup?