Hey guys, I’ve been debugging this for hours trying to make it work. Here’s the solution for anyone who’ll find this in search.
So, for anyone trying to use Cursor in Fedora templates and getting this error when launching the AppImage and trying to open file dialog via any relevant button (Open Folder, Open FIle, etc):
(cursor:11721): Gtk-WARNING **: 11:43:58.436: 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:495:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Bail out! Gtk:ERROR:../gtk/gtkiconhelper.c:495:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Aborted (core dumped)
You need to set your XDG_DATA_DIRS
variable which is empty in qubes fedora xfce templates for some reason.
Something like this in your ~/.bashrc
will work:
export $XDG_DATA_DIRS=/usr/local/share:/usr/share
Hope this will save someone hours and hours of pulling his hair, and note for devs to fix it.
Thanks!