DEV Community

Alireza Razinejad
Alireza Razinejad

Posted on

Create Linux Ubuntu 22.04 Desktop Shortcut

It is super simple, you just need to follow these steps.

In this example I was trying to add PyCharm IDE shortcut to desktop
Enter fullscreen mode Exit fullscreen mode
  1. Create a text file
  2. Add the following content

    #!/usr/bin/env xdg-open
    [Desktop Entry]
    Version=2022.3
    Exec=/home/user/IDES/PyCharm/bin/pycharm.sh
    Icon=/home/user/IDES/PyCharm/bin/pycharm.svg
    Name=PyCharm
    GenericName=PyCharm
    Comment=Develop JavaScript Applications
    Encoding=UTF-8
    Terminal=false
    Type=Application
    Categories=Application;IDE;
  3. Change the extension to `.desktop`
  4. Move it to desktop
  5. If all the links `Exec` and `Icon` are correct when right clicking on the file, you should be able to see `Allow Launching` and by clicking on it, the shortcut is complete and usable.

Top comments (0)