Connecting or disconnecting icon-themes plug from gnome extension should regenerate icon caches

There should be a hook added by the gnome extensions that upon connecting or disconnecting the icon-themes plug, added by the extension, should recreate the icon caches or pixbuf loader might still be unable to find the newly added icons or might reference icons that are now gone. cc: @kenvandine

icon caches live in the same directory as the icon theme itself, so it’s not something the plug-side snap could affect. The slot-side snap should create the icon-theme.cache files as part of its build process so that they get baked into the snap.

odd. I guess there’s a different bug with discord then. I’m getting a crash despite connecting the icon theme plug.

Looking closer on the error message there’s a missing pixbuf loader for png in the gnome-platform runtime?

(Discord:1184370): Gtk-WARNING **: 08:36:07.012: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /snap/discord/132/data-dir/icons/Adwaita/16x16/status/image-missing.png: Unable to load image-loading module: /snap/discord/133/gnome-platform/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/ /snap/discord/133/gnome-platform/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/ cannot open shared object file: No such file or directory (gdk-pixbuf-error-quark, 5)