- 新建 GoLand.desktop文件
该文件可以放在下面两个目录:
1 /usr/share/applications/
2 ~.local/share/applications 前者是系统全局的,后者是当前用户私有的。 - 文件内容如下:
[Desktop Entry]Comment=
Terminal=false
Name=jetbrains-GoLand
Exec=/opt/GoLand/bin/goland.sh
Type=Application
StartupNotify=true
Icon=/opt/GoLand/bin/goland.png - 遇到的问题 开始没有设置下面的属性: StartupNotify=true 导致桌面应用收藏夹中点击打开idea后会在任务栏另起一个程序图标,而不是融合在原来的程序图标上。增加这个属性后问题解决。

京公网安备 11010502036488号