wrapFirefox: update icon location

The icons for Firefox are in a new location in the unwrapped package; the
wrapper is updated to reflect that. This should have no effect on other browers
that provide their own icons in the default XDG location.
wip/yesman
Thomas Tuegel 6 years ago
parent 8bef1a5cb8
commit 01f37880f3
No known key found for this signature in database
GPG Key ID: 22CBF5249D4B4D59
  1. 8
      pkgs/applications/networking/browsers/firefox/wrapper.nix

@ -130,9 +130,11 @@ let
mkdir -p "$out/share"
ln -s "${browser}/share/icons" "$out/share/icons"
else
mkdir -p "$out/share/icons/hicolor/128x128/apps"
ln -s "${browser}/lib/${browserName}-"*"/browser/icons/mozicon128.png" \
"$out/share/icons/hicolor/128x128/apps/${browserName}.png"
for res in 16 32 48 64 128; do
mkdir -p "$out/share/icons/hicolor/''${res}x''${res}/apps"
ln -s "${browser}/lib/${browserName}/browser/chrome/icons/default/default''${res}.png" \
"$out/share/icons/hicolor/''${res}x''${res}/apps/${browserName}.png"
done
fi
install -D -t $out/share/applications $desktopItem/share/applications/*

Loading…
Cancel
Save