Ubuntu侧边栏添加Smartgit图标

  • Post author:
  • Post category:其他


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

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

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

[Desktop Entry]
Name=SmartGit
Comment=Smart Git Client
Exec=/home/allen/Apps/smartgit/bin/smartgit.sh  #smartgit的启动脚本
StartupNotify=true
Terminal=false
Type=Application
Icon=/home/allen/Apps/smartgit/bin/smartgit-256.png #smartgit的程序图标

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

这里写图片描述

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



版权声明:本文为sjhuangx原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。