很多软件在安装完成之后都需要在terminal中通过命令启动,这样的过程稍显繁杂,如果能够在Unity中添加图标,并把图标锁定在侧边栏上,无疑能够大大的提高效率。这里给出一种在Unity中添加图标的方法。实际上,侧边栏的每一个图标都对应了/usr/share/applications的一个文件。
首先,需要在/usr/share/applications创建一个<app name>.desktop文件。
在这个文件中添加如下选项
[Desktop Entry] type=Application Name=<App name> Comment=<Comment of App> Icon=<Dir of Icon> Exec=<Dir of executable> Terminal=false Categories=<Categories of App>
注:<>当中按照自己的实际情况填写就可以了,这里给出一个我配置scitools understand的示例:
[Desktop Entry] Type=Application Name=Understand Comment=Scitools Icon=/home/vincent/opt/scitools/icon.png Exec=/home/vincent/bin/understand Terminal=false Categories=Development;