title: Launch from GUI vs terminal - different path environment variable on Linux
body: <p>Environment:</p>
  
  <ul>
  <li>Ubuntu</li>
  <li>Eclipse with EclipseFP plugin <a href="http://eclipsefp.github.io/" rel="nofollow">http://eclipsefp.github.io/</a></li>
  </ul>
  
  <p>When opening EclipseFP by double clicking in Nemo file manager a custom tool named <code>htfpp</code> used by EclipseFP is not found. Error message: <code>buildwrapper: could not execute: htfpp</code></p>
  
  <p>htfpp executable is located in <code>~/.cabal/bin</code> and <code>~/.cabal/bin</code> is added to $PATH in <code>.bashrc</code></p>
  
  <p>Opening a terminal, navigating to the EclipeFP folder <code>cd Software/EclipeFP</code> and opening it with <code>./eclipse</code> the plugin works correctly. This has the disadvantage that the terminal is kept open to keep EclipseFP open.</p>
  
  <p>Writing a <code>.sh</code> script that does the above does not work though... it seems that when running the script from the GUI, Eclipse does not pick up the path correctly.</p>
  
  <p>Opening the previous <code>.sh</code> shell from a terminal works though.</p>
  
  <p>It seems this is related to the way Linux/Ubuntu/Cinnamon passes path environment variable to a running file from GUI vs terminal.</p>
  
  <p>Any ideas how to open EclipseFP with the correct $PATH environment variable set using a shortcut and without leaving any terminal open while it is running?</p>