git.iko.soy/typeable/nixpkgs
on master help sign in
gnome3.nautilus: add thumbnailers

Nautilus, resp. gnome-desktop, scans `thumbnailers` directories under the paths in `XDG_DATA_DIRS`. gdk-pixbuf was not, for some reason, listed in the variable, therefore Nautilus did not generate image thumbnails. I also add librsvg to the variable so that SVG files can be rendered. It does not work at the moment, though, because of incorrect path to the renderer.

commitbaa7e397c1da5abda9de445e61f5efa735a57f11 authorJan Tojnar <jtojnar@gmail.com> dateSun 1 Oct 2017, 00:22 (9 years ago) parent9824ca6
1 file changed+9−1
pkgs/desktops/gnome-3/core/nautilus/default.nix+9−1
pkgs/desktops/gnome-3/core/nautilus/default.nix+9−1
@@ -1,6 +1,6 @@
11{ stdenv, fetchurl, pkgconfig, libxml2, dbus_glib, shared_mime_info, libexif
22, gtk, gnome3, libunique, intltool, gobjectIntrospection, gnome-autoar, glib
3−, libnotify, wrapGAppsHook, exempi, librsvg, tracker, libselinux }:
3+, libnotify, wrapGAppsHook, exempi, librsvg, tracker, libselinux, gdk_pixbuf }:
44
55stdenv.mkDerivation rec {
66 inherit (import ./src.nix fetchurl) name src;
@@ -16,6 +16,14 @@ stdenv.mkDerivation rec {
1616 # fatal error: gio/gunixinputstream.h: No such file or directory
1717 NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
1818
19+ preFixup = ''
20+ gappsWrapperArgs+=(
21+ # Thumbnailers
22+ --prefix XDG_DATA_DIRS : "${gdk_pixbuf}/share"
23+ --prefix XDG_DATA_DIRS : "${librsvg}/share"
24+ )
25+ '';
26+
1927# hardeningDisable = [ "format" ];
2028 enableParallelBuilding = true;
2129