New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gdk-pixbuf depends on shared-mime-info #39493
Comments
I agree with hardcoding. Semantically I'd imagine this to be as if appended to the XDG_DATA_DIR search list, in ideal case, so it's still overridable in the usual ways. There is a small downside for closure sizes: |
This comment has been minimized.
This comment has been minimized.
The issue with the third point is a circular dependency. |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
This is still an issue for me. |
Confirming this is still an issue. Emacs frequently crashes, eg when hovering a link in markdown, with the (emacs:16021): GLib-GIO-CRITICAL **: 10:18:40.025: g_settings_schema_source_lookup: assertion 'source != NULL' failed
(emacs:16021): Gtk-WARNING **: 10:18:51.057: Could not load a pixbuf from /org/gtk/libgtk/icons/16x16/status/image-missing.png.
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 /org/gtk/libgtk/icons/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Fatal error 6: Aborted and a line in |
Hey I'm back again! I eventually installed emacs via Nix, that seems to have solved this. I'm back again because nixpkgs was breaking some things (unrelated issues), and I decided to build emacs manually. Now, I've found if I |
For deeper context, here's a ticket I haven't seen mentioned elsewhere yet, same issue: direnv/direnv#785 I'm currently solving this with: # in my .bashrc
export XDG_DATA_DIRS=/usr/share/ |
I marked this as stale due to inactivity. → More info |
gdk-pixbuf
needs data fromshared-mime-info
to be available inXDG_DATA_DIRS
to work correctly. At the moment, we are patching it to use the inaccurate guessing it resorts to on non-Linux platforms, but it is, well, inaccurate. It is probably also the reason why some installed tests fail with “Unrecognized image file format”.wrapProgram
every executable that usesgdk-pixbuf
(transitively). Even things like emacs, very tiresome.gdk-pixbuf
to modify theXDG_DATA_DIRs
environment. A terrible idea, sinceg_setenv
it is not thread-safe.shared-mime-info
path toglib
. Ifgdk-pixbuf
is built with mime-sniffing (build system will setGDK_PIXBUF_USE_GIO_MIME
), a module loader internal function will callg_content_type_guess
, which calls xdgmime functions, which during initialization traverse data dirs; the lattermost file is probably the right place.A testcase that will fail if we build gdk-pixbuf with MIME sniffing
cc @peti @vcunat
The text was updated successfully, but these errors were encountered: