From ddeb2f5cceef9d5cc146972850e6990cec1e7981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Thu, 18 Jun 2015 14:45:43 +0200 Subject: [PATCH] firefox: fix file-dialogs and icons with gtk3 There was the usual crashing and a few icons missing. @lethalman: I think it's best to start putting $XDG_ICON_DIRS into suffix instead of prefix (as here), so user-installed icons take precedence. /cc #7743. --- pkgs/applications/networking/browsers/firefox/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/networking/browsers/firefox/default.nix b/pkgs/applications/networking/browsers/firefox/default.nix index 727f89fe668..f10df2dc996 100644 --- a/pkgs/applications/networking/browsers/firefox/default.nix +++ b/pkgs/applications/networking/browsers/firefox/default.nix @@ -95,6 +95,11 @@ stdenv.mkDerivation rec { # Remove SDK cruft. FIXME: move to a separate output? rm -rf $out/share/idl $out/include $out/lib/firefox-devel-* + '' + lib.optionalString enableGTK3 + '' + wrapProgram "$out/bin/firefox" \ + --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:" \ + --suffix XDG_DATA_DIRS : "$XDG_ICON_DIRS" ''; meta = {