Subject: bug#63427: gdk-pixbuf unable to recognize image formats (JPG, PNG, etc.)

From: "pelzflorian (Florian Pelz)" <[email-masked]>
Date: Thu, 11 May 2023 13:04:31 +0200

Hi all.

Josselin Poiret via Bug reports for GNU Guix <[email-masked]> writes:
> For
> that, we use the environment variable GDK_PIXBUF_MODULE_FILE, which is a
> search-path for the package gdk-pixbuf, meaning that it is set only if
> gdk-pixbuf is installed in your profile.  […] So
> we should fix this and propagate gdk-pixbuf everywhere (something which
> I'm not too much a fan of, but alas).

The cambalache package does the right thing by wrapping the program to
setenv GDK_PIXBUF_MODULE_FILE to the value it has while building the
package.  glib-or-gtk build system sets GDK_PIXBUF_MODULE_FILE while
building the package.  Note that gdkpixbuf and perhaps
librsvg-for-system must be in inputs.

Regards,
Florian