mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-10-01 09:30:20 +02:00
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:
parent
b7d06138c8
commit
881d3fae72
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue