Monday, April 29, 2024
155
rated 0 times [  155] [ 0]  / answers: 1 / hits: 305879  / 3 Years ago, sun, november 7, 2021, 12:35:44

I'm trying to install Android Studio so that I can launch it from a launcher instead of via terminal.



Android Studio > Tools > Create Desktop Entry doesn't do anything



Can someone give specific instructions please?



I think this is something to do with the permissions in /usr/local/ I tried doing a chmod as explained in this article and it still didn't work.



I tried modifying the Android Studio launcher file that was in /usr/share/applications/ and it would not launch the app under my user. If I launch it as root it's fine, but that's not very practical.


More From » command-line

 Answers
6

Here is my AndroidStudio .desktop file which works from the launcher.


[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Exec="/home/username/Programs/AndroidStudio/bin/studio.sh" %f
Icon=/home/username/Programs/AndroidStudio/bin/studio.png
Categories=Development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-android-studio
Name[en_GB]=android-studio.desktop

If you are unable to create an entry for Android Studio on the Unity launcher through the Tools > Create Desktop Entry... option, it is possible that you might have a Unity generated jetbrains-android-studio.desktop in your ~/.local/share/applications folder. To confirm, open the file and check for the following entry:


X-UnityGenerated=true

Delete the file and try again.




Alternatively, you can also open Android Studio, click on Configure -> Create Desktop Entry. This should create an entry on the dash:


screenshoot


[#31093] Monday, November 8, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dresuitable

Total Points: 69
Total Questions: 116
Total Answers: 122

Location: Honduras
Member since Sun, Dec 26, 2021
2 Years ago
dresuitable questions
Sat, May 15, 21, 04:38, 3 Years ago
Fri, Apr 14, 23, 09:53, 1 Year ago
Tue, May 16, 23, 18:13, 1 Year ago
Sun, Apr 24, 22, 12:59, 2 Years ago
;