

This uses the built-in features of Gnome, and should continue to work across OS upgrades, package un/re/installs, etc. The "correct" way to solve this is to change your icon theme. Convince upstream not to ship ugly icons for Sublime Text.Edit the theme / delete the theme's Sublime Text icon files, though this will likely break if the theme is updated.Change your icon theme using the gnome-tweaks tool found in the gnome-tweak-tools package so the vendor's packaged icons are used, instead of the theme's icons.
SUBLIME TEXT LOGO FULL
desktop file to use a full path to a specific file as suggested, though this breaks the sizing code mentioned earlier. There are a few ways to use the packaged icon: This is where the errant icon is coming from. You'll notice if you open the relevant files that Moka provides the "rounded square" icon style for Sublime Text, alongside similar replacement icons for many popular apps like Firefox and Thunderbird. On my system, which uses Ubuntu Budgie 18.04, the default Gnome theme is Pocillo, and the default icon set is based on Moka. opt/sublime_text/Icon/32x32/sublime-text.png opt/sublime_text/Icon/256x256/sublime-text.png opt/sublime_text/Icon/128x128/sublime-text.png opt/sublime_text/Icon/16x16/sublime-text.png opt/sublime_text/Icon/48x48/sublime-text.png usr/share/icons/Moka/64圆4/apps/sublime-text.png usr/share/icons/Moka/48x48/apps/sublime-text.png

usr/share/icons/hicolor/256x256/apps/sublime-text.png usr/share/icons/hicolor/128x128/apps/sublime-text.png usr/share/icons/hicolor/48x48/apps/sublime-text.png $ find / -name sublime-text.png 2>/dev/null These are automatically selected by Gnome depending on your desktop resolution, DPI, and the size of the UI element that is using the icon (menu, dock, tray icons, etc.). If you use find you'll notice that there are multiple copies of the Sublime Text icon in different sizes. The path and file extension are filled in by Gnome, based on the theme and the size of the icon. These replacement icons are used instead of the icon packaged with the current version of Sublime Text (and other respective programs).Īs noted, /usr/share/applications/sublime_sktop refers to an icon named sublime-text. In Ubuntu Budgie, and possibly other Ubuntu flavors, Gnome uses an icon theme that includes replacement icons for Sublime Text, Firefox, Thunderbird, and other popular applications.

I was dissatisfied with answer, since the solution seems hacky and the answer doesn't explain why this is happening in the first place, so I dug into this a bit further.
