signal-desktop: Add xdg-utils/bin to PATH

Since:
1. clicking on links doesn't open tab/window in default browser (tested
   on Sway),
2. it's got a hard-coded $PATH reference to `xdg-open` somewhere in
   binary (see below).

When `signal-desktop` is invoked in a terminal, the output below
appears each time a link is clicked on in-app:
```
(...)
LaunchProcess: failed to execvp:
xdg-open
```
This commit is contained in:
x10an14 2022-02-17 13:01:47 +01:00 committed by ehmry
parent e556e61a55
commit ccb1851610

View file

@ -4,7 +4,7 @@
, libXext, libXfixes, libXrender, libXtst, libXScrnSaver, nss, nspr, alsa-lib
, cups, expat, libuuid, at-spi2-core, libappindicator-gtk3, mesa
# Runtime dependencies:
, systemd, libnotify, libdbusmenu, libpulseaudio
, systemd, libnotify, libdbusmenu, libpulseaudio, xdg-utils
# Unfortunately this also overwrites the UI language (not just the spell
# checking language!):
, hunspellDicts, spellcheckerLanguage ? null # E.g. "de_DE"
@ -84,6 +84,7 @@ in stdenv.mkDerivation rec {
(lib.getLib systemd)
libnotify
libdbusmenu
xdg-utils
];
unpackPhase = "dpkg-deb -x $src .";
@ -123,6 +124,7 @@ in stdenv.mkDerivation rec {
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc ] }"
${customLanguageWrapperArgs}
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--enable-features=UseOzonePlatform --ozone-platform=wayland}}"
--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}
)
# Fix the desktop link