前言

在ubuntu系统中,进行软件开发时,我们需要实时更新和维护我们自己的代码,smartgit是一款非常好用的图形化界面工具。但是安装后,总是需要在相应目录下运行脚本: ./smartgit.sh,有些繁琐。下面总结了一下,如何将smartgit图标添加到桌面侧边栏中,方便我们的使用。

具体步骤如下

1、找到smartgit脚本的启动路径(Exec)和smartgit程序图标的路径(Icon),我直接解压到了根目录下

Exec=/home/serein/smartgit-linux-23_1_2/smartgit/bin/smartgit.sh

Icon=/home/serein/smartgit-linux-23_1_2/smartgit/bin/smartgit-256.png

2、在~/.local/share/applications文件夹中,添加一个新的文件,命名为: smartgit.desktop,添加如下内容。替换掉步骤1中相应的内容。

[Desktop Entry]
Name=SmartGit
Comment=Smart Git Client
Exec=/home/serein/smartgit-linux-23_1_2/smartgit/bin/smartgit.sh
StartupNotify=true
Terminal=false
Type=Application
Icon=/home/serein/smartgit-linux-23_1_2/smartgit/bin/smartgit-256.png

3、在ubuntu的应用程序中,搜索“smartgit”,右键添加到收藏夹即可

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐