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.

(cherry picked from commit 881d3fae72)
This commit is contained in:
taku0
2021-11-14 13:54:00 +09:00
committed by Yuka
parent 32954394c6
commit 0a8bc59854

View File

@@ -285,7 +285,7 @@ let
else
for res in 16 32 48 64 128; do
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" \
"$out/share/icons/hicolor/''${res}x''${res}/apps/${browserName}.png"
fi