How to add Android Studio to the launcher?

294,061

Solution 1

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

Solution 2

Android Studio -> Tools -> Create Desktop Entry

enter image description here

Now, you should be able to see in your system menu:

enter image description here

Solution 3

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

Solution 4

From the quick start panel, (which opens up once android-studio IDE launched), click on "Configure" which takes you to the configure panel then click on "Create Desktop Entry".

You can also go to Tools -> Create Desktop Entry once you're inside an Android Studio Project.

This basically puts a jetbrains-android-studio.desktop file into your Ubuntu's ~/.local/share/applications folder.

Solution 5

  1. Open Android Studio.
  2. Right-click its icon in the launcher.
  3. "Lock to Launcher".
Share:
294,061

Related videos on Youtube

spences10
Author by

spences10

https://ss10.me/about

Updated on September 18, 2022

Comments

  • spences10
    spences10 over 1 year

    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.

    • Lucio
      Lucio almost 11 years
      What do you want to do finally? An icon to launch it, or alias? I personally recommend to do both options. You should read this post to add the commands to your PATH.
    • Lucio
      Lucio almost 11 years
      If some answer has been useful for you, please upvote it and mark it as accepted. So your question remains as answered. Thanks
    • spences10
      spences10 almost 11 years
      None of the answers have helped, I have spent the past two and a half hours trying to do this with no luck; I'm completely befuddled
    • Lucio
      Lucio almost 11 years
      What you didn't mentioned specifically what do you want to have as a result. I've added the android tools to my PATH and created an Icon on my desktop with the answer of @Shah. So if you have a new problem you should tell us what is that problem, otherwise, accept an answer.
    • spences10
      spences10 almost 11 years
      I have the file in usr/local the solution given is for /home/programs/ there be different permissions there. Unable to locate suitable startup script in '/home/user/programs/androidstudio/android-studio/bin'.
    • Lucio
      Lucio almost 11 years
      If so add replace that path with your (/usr/local.. blahblahblah) My recommendation is put the whole package in a new folder on your home directory called bin, then $HOME/bin/android
    • IQBAL AHMED
      IQBAL AHMED about 7 years
      For me logging out and logging in was needed for it to appear.
  • Lucio
    Lucio almost 11 years
    Could you explain further the value of the Exec property?
  • spences10
    spences10 almost 11 years
    Yeah your alternate note was what I tried and got the message I have posted in the main post. The .desktop file I can Google how to create that, right?
  • noisygecko
    noisygecko almost 11 years
    It is easiest to do the "alternate". From the Android Studio welcome screen just click "Configure" and then "Create Desktop Entry". Then you can search in Dash and Lock to Launcher.
  • cwhsu
    cwhsu over 9 years
    somehow, both methods not working for 14.04...
  • Dave
    Dave over 9 years
    While the accepted answer is quite valid and could be adapted for other applications, this is the simplest way to create an entry.
  • Chinmaya B
    Chinmaya B about 9 years
    But it requires setting up path variable so you should explicitly mention it in your answer
  • Daniel Kvist
    Daniel Kvist about 9 years
    @Lucio I don't have any experience with Ubuntu, but it looks (and sounds) like that is the location of the executable/runnable/binary/program/whatever it is called in Ubuntu.
  • muru
    muru almost 9 years
    Suggest an edit, please.
  • lmiguelvargasf
    lmiguelvargasf almost 9 years
    Your solution is pretty simple. Thank u so much!
  • raphie
    raphie almost 9 years
    Just to confirm it works in my Linux distro Ubuntu 14.10 LTS
  • Anuj TBE
    Anuj TBE almost 9 years
    thank you... its so simple to do... you saved my time...
  • Nasik Shafeek
    Nasik Shafeek over 8 years
    Great, this works. (Y)
  • Wayne_Yux
    Wayne_Yux over 8 years
    Your answer while possible may be a bit late as the OP already accepted the other answer. Your help is of course appreciated, however you might be better served by focusing your efforts on the unanswered questions
  • voghDev
    voghDev over 7 years
    This didn't work when I marked 'create desktop entry for all users'. Unchecking this option, the shortcut remained alive after reboot
  • gladed
    gladed over 7 years
    This is now under Tools -> Create Desktop Entry...
  • Offboard
    Offboard about 7 years
    Great, it's working on Linux Mint
  • Dave Carruthers
    Dave Carruthers about 6 years
    Dosn't work on Ubuntu 17 for some reason. The "lock to launcher" doesn't show.
  • spences10
    spences10 almost 6 years
    This question is five years old, I doubt any of it is relevant still - thanks for your contribution though @smac89 👍
  • amdev
    amdev over 5 years
    simple and elegant , tank you...
  • Infinite Loops
    Infinite Loops about 5 years
    FYI, it also works in ElementaryOS, which is also an Ubuntu-based distro.
  • gatorback
    gatorback over 4 years
    Effective on 16.04 + Android Studio 3.5.3
  • Admin
    Admin about 4 years
    The icon is now called studio.png
  • Eric kioko
    Eric kioko almost 4 years
    It doesn't get easier. Super helpful.
  • Joaquin Iurchuk
    Joaquin Iurchuk over 3 years
    Wow! How old is this feature? Never noticed about it, thanks!
  • Joaquin Iurchuk
    Joaquin Iurchuk over 3 years
    Is not Configure but Tools instead.
  • Arbaz.in
    Arbaz.in over 3 years
    Greate its so simple
  • Dewsworld
    Dewsworld about 3 years
    This should be the accepted answer due to simplicity