Hello,
I’ve tried installing Anki (following the installation guide from anki docs) to Ubuntu 22.04 and 20.04 and have had the same issue with the installation messing up the permissions for GTK based apps. (basically most of the icons don’t work, unless apps are started with sudo).
I have tried alot of fixes found on the internet from various threads with some success with the most improvement comming by changing the permission in the /usr/share/mime. For example using this command:
code
find /usr/share/mime -type f -perm 640 -exec chmod 644 {} \;
The problem is alot of the icons are still missing. Is there any way to resolve this?
Here is an error example:
Error
Gtk-WARNING **: 23:40:24.669: Could not load a pixbuf from /com/ubuntu/themes/Yaru/3.0/assets/bullet-symbolic.svg.
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 /usr/share/icons/Yaru/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Bail out! Gtk:ERROR:…/…/…/…/gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Yaru/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)