title: "No JDK found. Please validate ...JAVA_HOME...."-message with desktop launcher in ubuntu but works in shell
body: <p>I recently installed android-studio on my machine (ubuntu 16.04). After configurating my .bashrc file (JAVA_HOME is also set there), it starts in in my shell. 
  I also wanted to create a launcher on my desktop, so i created a androidstudio.desktop file in ~/.local/share/applications/.</p>
  
  <p>Here is my .desktop entry:</p>
  
  <pre><code>[Desktop Entry]
  Type=Application
  Name=AndroidStudio
  Exec=/home/&lt;path to android-studio&gt;/bin/studio.sh
  Icon=/home/&lt;path to android-studio&gt;/bin/studio.png
  Terminal=false
  Categorie=Development
  </code></pre>
  
  <p>The icon appears on my desktop but when I launch android-studio now, I get the following Error: </p>
  
  <pre><code>No JDK found. Please validate either STUDIO_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation.
  </code></pre>