signal: fix tray icon

As suggested in
<https://github.com/signalapp/Signal-Desktop/issues/6259>
run Signal with `--use-tray-icon` to show icon in tray.
This commit is contained in:
Ivan Mincik 2023-09-29 13:27:06 +02:00 committed by Jörg Thalheim
parent c2c6d8c08b
commit 6c681f121f

View File

@ -156,9 +156,10 @@ stdenv.mkDerivation rec {
--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}
)
# Fix the desktop link
# Fix the desktop link and fix showing application icon in tray
substituteInPlace $out/share/applications/${pname}.desktop \
--replace "/opt/${dir}/${pname}" $out/bin/${pname}
--replace "/opt/${dir}/${pname}" $out/bin/${pname} \
--replace "bin/signal-desktop" "bin/signal-desktop --use-tray-icon"
autoPatchelf --no-recurse -- "$out/lib/${dir}/"
patchelf --add-needed ${libpulseaudio}/lib/libpulse.so "$out/lib/${dir}/resources/app.asar.unpacked/node_modules/@signalapp/ringrtc/build/linux/libringrtc-x64.node"