From 797f7d6749f2bfeba99edbe4cf010a0674254705 Mon Sep 17 00:00:00 2001 From: teutat3s <10206665+teutat3s@users.noreply.github.com> Date: Sun, 12 Nov 2023 14:07:51 +0100 Subject: [PATCH] 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. --- .../networking/instant-messengers/signal-desktop/generic.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/instant-messengers/signal-desktop/generic.nix b/pkgs/applications/networking/instant-messengers/signal-desktop/generic.nix index 38719920d8a2..aec46a8c0f6b 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 ]}