Skip to content

Commit

Permalink
gnome.gnome-control-center: Support WebP files
Browse files Browse the repository at this point in the history
A hack until gdk-pixbuf learns to support multiple cache files.
  • Loading branch information
jtojnar committed Oct 21, 2022
1 parent e674c5b commit b6804f7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkgs/desktops/gnome/core/gnome-control-center/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
, libpulseaudio
, libpwquality
, librsvg
, webp-pixbuf-loader
, libsecret
, libwacom
, libxml2
Expand Down Expand Up @@ -139,6 +140,17 @@ stdenv.mkDerivation rec {
addToSearchPath "XDG_DATA_DIRS" "${polkit.out}/share"
'';

postInstall = ''
# Pull in WebP support for gnome-backgrounds.
# In postInstall to run before gappsWrapperArgsHook.
export GDK_PIXBUF_MODULE_FILE="${gnome._gdkPixbufCacheBuilder_DO_NOT_USE {
extraLoaders = [
librsvg
webp-pixbuf-loader
];
}}"
'';

preFixup = ''
gappsWrapperArgs+=(
--prefix XDG_DATA_DIRS : "${sound-theme-freedesktop}/share"
Expand Down

0 comments on commit b6804f7

Please sign in to comment.