7

I used to launch Android Studio by this steps:

  1. Open Android Studio folder.
  2. Open terminal there.
  3. Confirm sh studio.sh command.

Can I lauch Android Studio from the Desktop by the 1 click?

1
  • Possible duplicate. Give importance to the line: Exec=/home/samuel/ugene-1.11.5/ugene -ui. In your case change it to path to your script. Also, change the other relevant lines.
    – Raphael
    Sep 10, 2016 at 4:38

3 Answers 3

10

Create a file ( Desktop File ) with this content:

[Desktop Entry]
Version=1.0
Name=Android Studio 
Type=Application 
Icon=/PATH/TO/ICON/studio.png 
Exec=/PATH/TO/studio.sh 

Change /PATH/TO/ICON/studio.png and /PATH/TO/studio.sh accordingly.
save the file as: android-studio.desktop in /usr/share/applications

Now you'll be able to search in the Dash for Android Studio

2
  • 2
    For whatever reason it is not working for me. I tried to write the path only with path/to/studio.sh and path/to/sh studio.sh Either way, not working and not able to launch from desktop icon
    – Nandete82
    Jun 28, 2020 at 19:19
  • It worked, but after I change the file permissions to 644 with chmod 644 file.desktop and I also had my Exec= path not right, and when I fixed it to the correct path, the "Allow launching" appeared and I was able to add it as a favorite in the launcher. Jan 13, 2021 at 0:26
6

The easiest and fastest way to do this is:

after you open the program the same way you mentioned, right click on the program (from the programs bar/menu bar on the left) and click "Lock to Launcher".

2

I use this :

sudo apt-get install alacarte

I want to create launcher for Android Studio, This is the simple way : enter image description here

Open Alacarte. Choose New Item

enter image description here

Choose .sh File and Logo.. and Done.

enter image description here

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.