git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commitddeb2f5cceef9d5cc146972850e6990cec1e7981 authorVladimír Čunát <vcunat@gmail.com> dateThu 18 Jun 2015, 14:45 (11 years ago) parentaf4c5f9
1 file changed+5
pkgs/applications/networking/browsers/firefox/default.nix+5
pkgs/applications/networking/browsers/firefox/default.nix+5
@@ -95,6 +95,11 @@ stdenv.mkDerivation rec {
9595
9696 # Remove SDK cruft. FIXME: move to a separate output?
9797 rm -rf $out/share/idl $out/include $out/lib/firefox-devel-*
98+ '' + lib.optionalString enableGTK3
99+ ''
100+ wrapProgram "$out/bin/firefox" \
101+ --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:" \
102+ --suffix XDG_DATA_DIRS : "$XDG_ICON_DIRS"
98103 '';
99104
100105 meta = {