create a desktop shortcut icon for studio.sh [duplicate]

Solution 1:

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.