Ubuntu侧边栏添加Smartgit图标

来源:互联网 发布:智能音箱 知乎 编辑:程序博客网 时间:2024/04/26 20:22

smartgit提供的ubuntu客户端中使用smart.sh脚本进行启动,每次使用脚本有些不太方便,如果将其添加到侧边栏中可以方便使用。

ubuntu系统中侧边栏的程序一般放在/usr/share/applications或者~/.local/share/applications文件夹中。

将smartgit的程序进行解压(我放到了~/Apps文件夹中),然后在~/.local/share/applications文件夹中添加一个新的smartgit.desktop文件,添加如下内容:

[Desktop Entry]Name=SmartGitComment=Smart Git ClientExec=/home/allen/Apps/smartgit/bin/smartgit.sh  #smartgit的启动脚本StartupNotify=trueTerminal=falseType=ApplicationIcon=/home/allen/Apps/smartgit/bin/smartgit-256.png #smartgit的程序图标

经过以上步骤之后就可以在ubuntu的搜索栏中搜索smartgit程序了,启动之后右键lock to launcher添加到侧边栏中。

这里写图片描述

其他程序的添加只需要修改一下desktop文件即可。

0 0
原创粉丝点击