mirror of
https://github.com/storytold/craft-anything.git
synced 2026-11-21 20:08:24 +00:00
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