Commit 6c681f12 authored by Ivan Mincik's avatar Ivan Mincik Committed by Jörg Thalheim
Browse files

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.
parent c2c6d8c0
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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"