DEV Community

Alireza Razinejad
Alireza Razinejad

Posted on

1

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.

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more