signal-desktop: remove tray icon fix

This commit is contained in:
André Silva
2024-05-05 18:35:52 +01:00
parent be5e47a591
commit d5db34e876
@@ -57,7 +57,8 @@
let
inherit (stdenv) targetPlatform;
ARCH = if targetPlatform.isAarch64 then "arm64" else "x64";
in stdenv.mkDerivation rec {
in
stdenv.mkDerivation rec {
inherit pname version;
# Please backport all updates to the stable channel.
@@ -155,10 +156,9 @@ in stdenv.mkDerivation rec {
--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}
)
# Fix the desktop link and fix showing application icon in tray
# Fix the desktop link
substituteInPlace $out/share/applications/${pname}.desktop \
--replace "/opt/${dir}/${pname}" $out/bin/${pname} \
${if pname == "signal-desktop" then "--replace \"bin/signal-desktop\" \"bin/signal-desktop --use-tray-icon\"" else ""}
--replace "/opt/${dir}/${pname}" $out/bin/${pname}
# Note: The following path contains bundled libraries:
# $out/lib/${dir}/resources/app.asar.unpacked/node_modules/