git.iko.soy/typeable/nixpkgs
on master help sign in
shutter: wrap `XDG_DATA_DIRS` with `hicolor-icon-theme`

When opening `shutter` it adds an indicator icon to the status bar. However this doesn't happen (and an ugly default icon will be used) if `shutter` can't find the `hicolor-icon-theme`. In such a case a warning like this can be found in `stderr`: ``` Gtk-WARNING **: Could not find the icon 'image-png'. The 'hicolor' theme was not found either, perhaps you need to install it. ``` As I don't think that we should force users to install this theme globally and several other packages including `tor-browser`, `gparted` or `clawsmail` add `hicolor-icon-theme` to their closure this seems to be a fair measure.

commit40226e647e5481f8276f2265207d262d4ab750ea authorMaximilian Bosch <maximilian@mbosch.me> dateThu 3 May 2018, 11:25 (9 years ago) parentae7c71e
1 file changed+4−1
pkgs/applications/graphics/shutter/default.nix+4−1
pkgs/applications/graphics/shutter/default.nix+4−1
@@ -1,4 +1,6 @@
1−{ stdenv, fetchurl, fetchpatch, perl, perlPackages, makeWrapper, imagemagick, gdk_pixbuf, librsvg }:
1+{ stdenv, fetchurl, fetchpatch, perl, perlPackages, makeWrapper, imagemagick, gdk_pixbuf, librsvg
2+, hicolor-icon-theme
3+}:
24
35let
46 perlModules = with perlPackages;
@@ -29,6 +31,7 @@ stdenv.mkDerivation rec {
2931 wrapProgram $out/bin/shutter \
3032 --set PERL5LIB "${stdenv.lib.makePerlPath perlModules}" \
3133 --prefix PATH : "${imagemagick.out}/bin" \
34+ --suffix XDG_DATA_DIRS : "${hicolor-icon-theme}/share" \
3235 --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
3336 '';
3437