usr/share/applications

創建文件 Gogland.desktop

[Desktop Entry]
Version=1
Type=Application
Name=Gogland
GenericName=Text Editor
Comment=Go IDE
Exec=/root/packet/Gogland-171.4694.61/bin/gogland.sh %F
Terminal=false
MimeType=text/plain
Icon=/root/packet/Gogland-171.4694.61/bin/gogland.png
Categories=TextEditor;Development;Documentation;
StartupNotify=true;
Actions=Window;Document;

[Desktop Action Window]
Name=New Window
Exec=/root/packet/Gogland-171.4694.61/bin/gogland.sh -n
OnlyShowIn=Unity;

[Desktop Action Document]
Name=New File

 

放到/usr/share/applications中