一、基本概念
Linux 系统中的Desktop Entry 文件以desktop为后缀名。Desktop Entry 文件是 Linux 桌面系统中用于描述程序启动配置信息的文件。
进入/usr/share/applications 目录,可见如下图所示的各类软件图标
二、具体操作
vim /usr/share/applications/Goland.Desktop
[Desktop Entry]
Type=Application
Name=Goland
GenericName=Goland
Comment=Goland:golang IDE
Exec="/home/ubuntu/software/GoLand-2019.3.4/bin/goland.sh" %f
Icon=/home/ubuntu/software/GoLand-2019.3.4/bin/goland.png
Terminal=goland
Categories=Goland;
StartupWMClass=jetbrains-goland