wrapFirefox: fix icon linking for Thunderbird

Firefox has its icons in
`/lib/firefox-bin-*/browser/chrome/icons/default` while Thunderbird has
`/lib/thunderbird/chrome/icons/default`.

Fixes https://github.com/NixOS/nixpkgs/pull/143942#issuecomment-963418080.
This commit is contained in:
taku0 2021-11-14 13:54:00 +09:00
parent b7d06138c8
commit 881d3fae72

View file

@ -290,7 +290,7 @@ let
else else
for res in 16 32 48 64 128; do for res in 16 32 48 64 128; do
mkdir -p "$out/share/icons/hicolor/''${res}x''${res}/apps" mkdir -p "$out/share/icons/hicolor/''${res}x''${res}/apps"
icon=( "${browser}/lib/"*"/browser/chrome/icons/default/default''${res}.png" ) icon=$( find "${browser}/lib/" -name "default''${res}.png" )
if [ -e "$icon" ]; then ln -s "$icon" \ if [ -e "$icon" ]; then ln -s "$icon" \
"$out/share/icons/hicolor/''${res}x''${res}/apps/${applicationName}.png" "$out/share/icons/hicolor/''${res}x''${res}/apps/${applicationName}.png"
fi fi