Creating an application launcher icon for Android Studio
This is so simple...
Go to Android Studio > Tools > Create desktop Entry
Here is my android-studio.desktop
file. Its working after adding bash -i
before program path.
[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Exec=bash -i "/home/user/android-studio/bin/studio.sh" %f
Icon=/home/user/android-studio/bin/studio.png
Categories=Development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-android-studio
Name[en_GB]=android-studio.desktop
This has been asked before for IntelliJ. Since Android Studio is the same in this context I will link to the answer and copy it here.
https://askubuntu.com/a/272336/72597
Snippet from linked answer
[Old Answer]
Download IntelliJ IDEA CE from [www.jetbrains.com/idea/download/][3].
Extract ideaIC-XX.Y.Z.tar.gz using
tar -zxvf ideaIC-XX.Y.Z.tar.gz
Become root.
sudo -i
Move the extracted folder to
/opt/idea
mv ideaIC-XX.Y.Z /opt/idea
Create a desktop file and install it:
gedit idea.desktop
and copy the following to the
idea.desktop
file.[Desktop Entry] Name=IntelliJ IDEA Type=Application Exec=idea.sh Terminal=false Icon=idea Comment=Integrated Development Environment NoDisplay=false Categories=Development;IDE; Name[en]=IntelliJ IDEA
then execute the following command to automatically install it in the unity:
desktop-file-install idea.desktop
Create a symlink in
/usr/local/bin
usingcd /usr/local/bin ln -s /opt/idea/bin/idea.sh
For idea icon to be displayed in dash, idea icon can be added as
cp /opt/idea/bin/idea.png /usr/share/pixmaps/idea.png
That's it. Now, you can launch IntelliJ from Ubuntu dash.
Note that there is an updated version of this answer and I suspect that it might apply to android studio as well.