I currently launch android studio by going to /path-to-android-studio/bin
and running ./studio.sh
and it works fine.
However, I want to create a launcher on the Dash and side menu for launching it easily.
After going through some other questions like this, I first tried the Tools > Create Desktop Entry method. It did create an entry on the dash, but somehow Android Studio does not launch by clicking on it. If it's of any help, I am pasting the jetbrains-android-studio.desktop
entry this method created in the /usr/share/applications
directory:
[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Icon=/home/jayant/Android/android-studio/bin/androidstudio.svg
Exec="/home/jayant/Android/android-studio/bin/studio.sh" %f
Comment=Develop with pleasure!
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-android-studio
When this didn't help, I deleted the above mentioned .desktop
entry and tried the method mentioned in this blog post, which required me to create the following jetbrains-android-studio.desktop
file and paste it in /home/jayant/.local/share/applications
directory
[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Exec="/home/jayant/Android/android-studio/bin/studio.sh" %f
Icon=/home/jayant/Android/android-studio/bin/idea.png
Categories=Development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-android-studio
This also created an icon in my Dash but Android Studio refuses to launch with this also. Is there something I am doing wrong? I just want a simple launcher icon for Android Studio on my dash! I am using Ubuntu 14.04.
sudo chmod +x ./file.desktop