Setting environment variables when executing Eclipse via Unity launcher icon
Posted
by
Nullptr
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Nullptr
Published on 2012-03-21T06:00:53Z
Indexed on
2012/06/04
22:47 UTC
Read the original article
Hit count: 420
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?
© Ask Ubuntu or respective owner