git.iko.soy/typeable/nixpkgs
on master help sign in
gnome3.gnome_control_center: fix thumbnailers path

Just like Nautilus (see #29970), GNOME Control Center also uses gnome-desktop for generating thumbnails. In particular, it tries to make a thumbnail from a file choosen as a profile picture, and when it does not succeed, it will not allow that file to be chosen. Of course, whithout a thumbnailer, it will always fail. https://github.com/GNOME/gnome-control-center/blob/43129a1cfd30374c3ff45c54eae9ee5cd68ae1b6/panels/user-accounts/um-photo-dialog.c#L190-L192 Since gnome-desktop scans `thumbnailers` directories under the paths in `XDG_DATA_DIRS`, gdk-pixbuf had to be added to the path to provide access to image thumbnailer.

commita093bf8b88606c00188227245600038f5422f86e authorJan Tojnar <jtojnar@gmail.com> dateSun 1 Oct 2017, 14:47 (9 years ago) parent9824ca6
1 file changed+3
pkgs/desktops/gnome-3/core/gnome-control-center/default.nix+3
pkgs/desktops/gnome-3/core/gnome-control-center/default.nix+3
@@ -41,6 +41,9 @@ stdenv.mkDerivation rec {
4141 preFixup = with gnome3; ''
4242 gappsWrapperArgs+=(
4343 --prefix XDG_DATA_DIRS : "${gnome3.gnome_themes_standard}/share:${sound-theme-freedesktop}/share"
44+ # Thumbnailers (for setting user profile pictures)
45+ --prefix XDG_DATA_DIRS : "${gdk_pixbuf}/share"
46+ --prefix XDG_DATA_DIRS : "${librsvg}/share"
4447 )
4548 for i in $out/share/applications/*; do
4649 substituteInPlace $i --replace "gnome-control-center" "$out/bin/gnome-control-center"