It is super simple, you just need to follow these steps.
In this example I was trying to add PyCharm IDE shortcut to desktop
- Create a text file
Add the following content
- Change the extension to `.desktop`
- Move it to desktop
- 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.