Creating An Application Launcher Icon For Android Studio


Answer :

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].




  1. Extract ideaIC-XX.Y.Z.tar.gz using



    tar -zxvf ideaIC-XX.Y.Z.tar.gz

  2. Become root.



    sudo -i

  3. Move the extracted folder to /opt/idea



    mv ideaIC-XX.Y.Z /opt/idea

  4. 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

  5. Create a symlink in /usr/local/bin using



    cd /usr/local/bin
    ln -s /opt/idea/bin/idea.sh

  6. 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.



Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable