git gui and gitk not showing git icon in launcher
Colin Law
clanlaw at gmail.com
Sat Jan 10 10:08:27 UTC 2026
Thanks to all for the help which has led me to the solution.
As well as the suggestions above I had to include in the desktop file
StartupWMClass=git-gui
otherwise the icon did not appear when the app was started from the
command line.
For git gui I have ended up with
[Desktop Entry]
Type=Application
Name=Git gui
GenericName=Git Repository Manager
Comment=Graphical interface for git
Exec=/usr/bin/git gui
Icon=/usr/share/git-gui/lib/git-gui.ico
Terminal=false
StartupWMClass=git-gui
Categories=Development;RevisionControl;
Keywords=git;vcs;repository;log;
StartupNotify=true
For gitk, it seems that the install does not include an icon, so I
downloaded an appropriate one from one of the many free icon sites on
the internet and this does the job:
[Desktop Entry]
Type=Application
Name=Gitk
GenericName=Git Repository Browser
Comment=Visualize Git repositories
Exec=/usr/bin/gitk
Icon=/home/my_user_name/.local/share/icons/gitk_icon.png
Terminal=false
StartupWMClass=gitk
Categories=Development;RevisionControl;
Keywords=git;vcs;repository;log;
StartupNotify=true
Thanks again
Colin L.
More information about the ubuntu-users
mailing list