Open KiaraGrouwstra opened 2 weeks ago
Programs generally do not load stuff from /run/current-system/sw/lib
– otherwise, we could return to just using /usr/lib
. In this case, you need to add webp-pixbuf-loader
to swaybg
package using a wrapper that sets GDK_PIXBUF_MODULE_FILE
environment variable. See eog for an example:
Also please always open an issue downstream (in Nixpkgs) before going upstream, unless you are sure it is an upstream issue.
i tested creating a local overlay adding a similar attribute:
prev.swaybg.overrideAttrs (oa: {
postInstall = ''
# Pull in WebP and JXL support
export GDK_PIXBUF_MODULE_FILE="${pkgs.gnome._gdkPixbufCacheBuilder_DO_NOT_USE {
extraLoaders = [
pkgs.libjxl
pkgs.librsvg
pkgs.webp-pixbuf-loader
pkgs.libheif.out
];
}}"
'';
})
it looks like this did not resolve the issue yet however.
That's just one part. You also need the wrapper.
Describe the bug
as per https://github.com/swaywm/swaybg/issues/76, webp images seem rejected by
swaybg
under NixOS.Steps To Reproduce
Steps to reproduce the behavior:
swaybg
andwebp-pixbuf-loader
[background-image.c:30] Failed to load background image (Couldn’t recognize the image file format for file “img.webp”).
Expected behavior
any image formats supported by
swaybg
workAdditional context
this may be about
gdk-pixbuf
detectingwebp-pixbuf-loader
, tho its package does do stuff about this (and confirmed on my end,libpixbufloader-webp.so
is present in/run/current-system/sw/lib/gdk-pixbuf-2.0/2.10.0/loaders/
and/etc/profiles/per-user/kiara/lib/gdk-pixbuf-2.0/2.10.0/loaders/
).c.f. #221017 similarly mentions webp issues in
gdk-pixbuf
, tho usinglibrsvg
Notify maintainers
@primeos @bobby285271 @hedning @jtojnar @dasj19 @cwyc
Metadata