title: Starting Intellij IDEA from icon on linux: No JDK found
body: <p>I am using Linux Mint and trying to run Intellij IDEA from icon on the start menu. Starting Intellij via terminal <code>./idea.sh</code> works fine. However launching from icon (points to the same <code>./idea.sh</code>) ends up with following error: </p>
  
  <p><code>No JDK found. Please validate either IDEA_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation.</code></p>
  
  <p>Running <code>echo $JAVA_HOME</code> and <code>java -version</code> works correctly and shows installed JDK.
  How can I fix this issue and why starting from icon differs from starting from terminal?</p>