Create Linux Ubuntu 22.04 Desktop Shortcut

ussdlover

Alireza Razinejad

Posted on August 18, 2022

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.
πŸ’– πŸ’ͺ πŸ™… 🚩
ussdlover
Alireza Razinejad

Posted on August 18, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related