about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/signal-desktop
diff options
context:
space:
mode:
authorx10an14 <x10an14@users.noreply.github.com>2022-02-17 13:01:47 +0100
committerehmry <ehmry@posteo.net>2022-03-04 09:37:21 -0600
commitccb1851610cb0d0ffc463fc6ebf0c6591f957f4c (patch)
tree0040c63f94960e7e06ce103c7afe6782434cfc34 /pkgs/applications/networking/instant-messengers/signal-desktop
parente556e61a551c79f99ba19dcb206c87caa1e2a432 (diff)
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
```
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/signal-desktop')
-rw-r--r--pkgs/applications/networking/instant-messengers/signal-desktop/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix b/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix
index 9cc4e057995bf..6d1bb0af147f4 100644
--- a/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix
+++ b/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix
@@ -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