title: An issue with Android Studio running on Linux
body: <p>I have recently installed Android Studio on Manjaro Linux, but I am experiencing issues every time I have to run the application from the scratch. Namely, in order to start application, I have to be logged in as root, then I have to validate JAVA_HOME environmental variable and finally start the application with ./studio.sh</p>
  
  <p>Here is the full code of that:</p>
  
  <pre><code>[nikodroid@manjaro ~]$ cd /usr/share/applications/android-studio/bin
  bash: cd: /usr/share/applications/android-studio/bin: Permission denied
  [nikodroid@manjaro ~]$ sudo su
  [sudo] password for nikodroid: 
  [root@manjaro nikodroid]# cd /usr/share/applications/android-studio/bin
  [root@manjaro bin]# ./studio.sh 
  which: no java in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl)
  ERROR: Cannot start Android Studio\nNo JDK found. Please validate either STUDIO_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation.
  [root@manjaro bin]# cd /usr/java/
  [root@manjaro java]# export JAVA_HOME=/usr/java/jdk1.7.0_21/
  [root@manjaro java]# export PATH=$PATH:$JAVA_HOME/bin
  [root@manjaro java]# cd /usr/share/applications/android-studio/bin/
  [root@manjaro bin]# ./studio.sh
  </code></pre>
  
  <p>So, obviously this runs only when I am keeping the terminal session, once I exit, the application stops working. My question is, what can I do in order to not do this all every time I want to run the application?</p>
  
  <p>Just to mention, I put the following line</p>
  
  <pre><code>JAVA_HOME=/usr/java/jdk1.7.0_21/
  </code></pre>
  
  <p>in /etc/environment/ in order to persist this environment variable, but it seems that it didn't work.</p>
  
  <p>Thanks!</p>