summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorteutat3s <10206665+teutat3s@users.noreply.github.com>2023-11-12 14:07:51 +0100
committerJörg Thalheim <Mic92@users.noreply.github.com>2023-11-19 03:34:33 +0100
commit797f7d6749f2bfeba99edbe4cf010a0674254705 (patch)
tree7eee079edd65b3228612148641483567b1d52ea0 /pkgs/applications
parent70dff9089ea18ef9b4a25a1748f8b357f648aae8 (diff)
downloadnixpkgs-797f7d6749f2bfeba99edbe4cf010a0674254705.tar
nixpkgs-797f7d6749f2bfeba99edbe4cf010a0674254705.tar.gz
nixpkgs-797f7d6749f2bfeba99edbe4cf010a0674254705.tar.bz2
nixpkgs-797f7d6749f2bfeba99edbe4cf010a0674254705.tar.lz
nixpkgs-797f7d6749f2bfeba99edbe4cf010a0674254705.tar.xz
nixpkgs-797f7d6749f2bfeba99edbe4cf010a0674254705.tar.zst
nixpkgs-797f7d6749f2bfeba99edbe4cf010a0674254705.zip
signal-desktop: fix screensharing on wayland
Without this change, starting a screenshare in signal-desktop on wayland
(sway) only produces a blank, black screen after selecting which screen
to share, with the following error in the logs:

ERROR:shared_screencast_stream.cc(412)] Unable to open PipeWire library
ERROR:base_capturer_pipewire.cc(81)] ScreenCastPortal failed: 1

Upstream has fixed screensharing in general according to
https://github.com/signalapp/Signal-Desktop/issues/5350#issuecomment-1664092786.
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/networking/instant-messengers/signal-desktop/generic.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/networking/instant-messengers/signal-desktop/generic.nix b/pkgs/applications/networking/instant-messengers/signal-desktop/generic.nix
index 38719920d8a..aec46a8c0f6 100644
--- a/pkgs/applications/networking/instant-messengers/signal-desktop/generic.nix
+++ b/pkgs/applications/networking/instant-messengers/signal-desktop/generic.nix
@@ -15,6 +15,7 @@
 , at-spi2-atk
 , cairo
 , pango
+, pipewire
 , gdk-pixbuf
 , glib
 , freetype
@@ -150,7 +151,7 @@ stdenv.mkDerivation rec {
 
   preFixup = ''
     gappsWrapperArgs+=(
-      --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc ] }"
+      --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc pipewire ] }"
       # Currently crashes see https://github.com/NixOS/nixpkgs/issues/222043
       #--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
       --suffix PATH : ${lib.makeBinPath [ xdg-utils ]}