diff options
author | Tobias Mayer <tobim@fastmail.fm> | 2024-03-03 14:10:13 +0100 |
---|---|---|
committer | Tobias Mayer <tobim@fastmail.fm> | 2024-03-03 14:16:55 +0100 |
commit | 5f6b9d7b7dc6d3631688f3aa071d0a893f4fbfa6 (patch) | |
tree | a057ade5e9faac6267c00308bdbd8b3b0701cd60 /pkgs/applications/networking/instant-messengers/slack | |
parent | 286977c08ddf540b4c6bebd8cd96fe30070bcb46 (diff) |
slack: fix screen sharing on wayland
Slack blacklists the electron feature to allow screen capture via Pipewire for unknown reasons. This change applies the same workaround as the unofficial slack flatpack to get it working again.
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/slack')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/slack/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/networking/instant-messengers/slack/default.nix b/pkgs/applications/networking/instant-messengers/slack/default.nix index 7012b8e8f43e4..b19d1f6f8a010 100644 --- a/pkgs/applications/networking/instant-messengers/slack/default.nix +++ b/pkgs/applications/networking/instant-messengers/slack/default.nix @@ -181,7 +181,11 @@ let --replace /usr/bin/ $out/bin/ \ --replace /usr/share/pixmaps/slack.png slack \ --replace bin/slack "bin/slack -s" - + '' + lib.optionalString stdenv.hostPlatform.isLinux '' + # Prevent Un-blacklist pipewire integration to enable screen sharing on wayland. + # https://github.com/flathub/com.slack.Slack/issues/101#issuecomment-1807073763 + sed -i -e 's/,"WebRTCPipeWireCapturer"/,"LebRTCPipeWireCapturer"/' $out/lib/slack/resources/app.asar + '' + '' runHook postInstall ''; }; |