20

I recently have downloaded android studio to develop android.
I run program at terminal typing ./studio.sh
My question is :
Is there any way to start it as a GUI icon at desktop without use terminal.

Arm
  • 303

1 Answers1

38

To create a desktop file do this:

  1. Open Gedit.

  2. Paste the following into the file, editing the relevant parts:

    #!/usr/bin/env xdg-open
    [Desktop Entry]
    Version=1.0
    Type=Application
    Terminal=false
    Icon=someicon
    Exec=sh /path/to/studio.sh
    Name=Android Studio
    
  3. Now, save this file as somename.desktop, to your desktop.

  4. Next, you need to make this file executable by typing the command:

    cd ~/Desktop && chmod a+x somename.desktop
    

Now, double-clicking the application should launch your application.

Antony
  • 358
Raphael
  • 8,035
  • Glad! I could help. – Raphael Dec 25 '15 at 18:25
  • 3
    for help other.enter Icon such: /home/ur_pc_name/path/to/icon.ico – Arm Dec 25 '15 at 18:33
  • 1
    android studio icon as studio.png is also located at the same place where you have your studio.sh – Mohammed Sufian Jun 05 '17 at 06:02
  • 6
    When you start android studio, there is an option named configure. In the configure option, you will get Create a desktop Entry for Studio. Just do a couple of okays, and after restarting you can find Android Studio in your system menu. Checked in Ubuntu 16.04..:) – john400 Sep 02 '17 at 04:30
  • 23
    Android Studio -> Tools -> Create Desktop Entry – Ihab Shoully Sep 27 '17 at 18:11
  • @IhabShoully doesn't work for Linux Deepin 15.11 – Сергей Грушин Jan 15 '20 at 10:17
  • As of the latest version of Android Studio, which is typically installed in /usr/local/android-studio, you can launch /usr/local/android-studio/bin/studio.sh, go to Configure -> Create Desktop Entry. Requires password if creating for all users. This is just an updated version of @IhabShoully's comment. – rubynorails May 14 '20 at 14:52
  • In 2022 with dolphin, when you start studio.sh, you get a "welcome" screen with 3 big buttons pertaining to projects, and a side column with "Projects", "Customize", "Plugins", and "Learn Andriod Studio". So I don't see where "Configure" is. Under "Customize" there is a dialog with "Color Theme", "Accessibility", and "Keymap". Continuing from here is just a confusing exercise of which thing is like "Configure / Create Desktop Entry" without being called that exactly? – cardiff space man Nov 30 '22 at 00:20