Files
Ilija Chrchev 1d28fc6439 Refresh user icon cache after AppImage desktop integration (#1877) (#2115)
On Fedora (and other GTK desktops), the hicolor icon cache is not
rebuilt after the AppImage copies its icons into $XDG_DATA_HOME.
The desktop keeps showing a generic icon until the user logs out
or manually runs gtk-update-icon-cache.

Add a conditional cache refresh to the AppRun integration step:
- Track whether any icon file was actually copied (changed).
- Only refresh if the cache file (icon-theme.cache) already exists,
  so we never create one where the desktop hasn't built one yet.
- Skip silently when gtk-update-icon-cache is not installed.

The fix lives in the AppImage's own AppRun rather than in the
launcher because the launcher (appimagelauncher) is a separate
project with its own release cycle, and many users run AppImages
directly without it. Both fixes are complementary.

Tested on Fedora 41 (GNOME 47, Wayland) by launching from the app
grid after clearing the icon cache. The correct icon appeared on
the first launch without a logout.

Closes #1877
2026-11-19 20:02:02 -07:00
..
2026-10-31 10:52:14 -04:00
2026-10-31 10:52:14 -04:00