First, understand a concept, linux system, everything is a file, it is also a shortcut to a file, to be exact - to a file with the extension .desktop
After this clear, just know how to write to this file:
[Desktop Entry]
Name=Idea
Name[zh_CN]=Idea
#显示图标
Icon=/home/weimeng/jetBrains/idea-IU-191.6183.87/bin/idea.png
#程序路径
Exec=/home/weimeng/jetBrains/idea-IU-191.6183.87/bin/idea.sh
StartupNotify=false
Terminal=false
Type=Application
Categories=Application
As shown, the clients of the above named Idea end desktop shortcut content
Highlights:
You need to know this program is executable file which, generally placed in the bin directory of the software installation, and software and are generally the same name .sh file,
Find an icon you like, into the Icon path, the path to the executable file placed in the Exec path, and then two Name also changed a bit, this shortcut can use it.