Skip to content
  • Georges Basile Stavracas Neto's avatar
    shell/app-system: Monitor for icon theme changes · c0047cd1
    Georges Basile Stavracas Neto authored and Florian Müllner's avatar Florian Müllner committed
    Whenever an app is installed, the usual routine is
    to run 'gtk-update-icon-cache' after installing all
    of the app's files.
    
    The side effect of that is that the .desktop file of
    the application is installed before the icon theme
    is updated. By the time GAppInfoMonitor emits the
    'changed' signal, the icon theme is not yet updated,
    leading to StIcon use the fallback icon.
    
    Under some circumstances (e.g. on very slow spinning
    disks) the app icon is never actually loaded, and we
    see the fallback icon forever.
    
    Monitor the icon theme for changes when an app is
    installed. Try as many as 6 times before giving up
    on detecting an icon theme update.
    
    GNOME/gnome-shell!661
    c0047cd1