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:
parent
c2c6d8c08b
commit
6c681f121f
1 changed files with 3 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue