I recently installed Android Studio on Manjaro Linux, but every time I have to start the application from scratch, I have problems. Namely, in order to start the application, I must be registered as root, then I need to check the JAVA_HOME environment variable and finally start the application with. /studio.sh
Here is the complete code for this:
[ 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]
Thus, it is obvious that this is only done when I have a terminal session, as soon as I exit, the application stops working. My question is: what can I do to not do this every time I want to run the application?
Just to mention, I put the following line
JAVA_HOME=/usr/java/jdk1.7.0_21/
in / etc / environment / to save this environment variable, but it seems to not work.
Thanks!
source share