在ubuntu的unity启动栏手动添加快捷方式

dash的快捷方式储存在/usr/share/applications/里,文件后缀是.desktop,以freemind.desktop的内容为例:

[Desktop Entry]
Version=1.0
Name=FreeMind
Exec=/usr/bin/freemind %U
Terminal=false
Icon=FreeMindWindowIcon
Type=Application
MimeType=application/x-freemind;
Categories=Office;
GenericName=FreeMind
Comment=A free mind mapping tool

自定义的图标可以储存在/usr/share/icons/里,类似于:

Icon=/usr/share/icons/matlab_logo.png

保存*.desktop文件后就能在dash里搜索到快捷方式,如果图标没有更新,可以使用命令:

sudo update-desktop-database /usr/share/applications

点击快捷方式运行后,就能右键锁定到启动器了。

原文地址:https://www.cnblogs.com/catmelo/p/3051920.html