From 8d44fafdedf99c4ed2f258baa396f436a9771898 Mon Sep 17 00:00:00 2001 From: Rodrigo Oliveira Date: Thu, 14 Mar 2024 17:18:19 -0300 Subject: [PATCH] slack-desktop: allow the use of WebRTCPipeWireCapturer flag Slack seems to disable screen sharing on Wayland [1], so this commit allow the use of WebRTCPipeWireCapturer. Note that the user still need to add the flag on the command line to enable it: --enable-features=WebRTCPipeWireCapturer --ozone-platform-hint=auto. [1] https://forums.slackcommunity.com/s/question/0D53a00009BSEGACA5/when-will-slack-support-wayland-screen-sharing-does-anyone-have-workarounds-or-hacks-to-make-it-work --- srcpkgs/slack-desktop/template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srcpkgs/slack-desktop/template b/srcpkgs/slack-desktop/template index 4ed60d25375222..6368b1790c9039 100644 --- a/srcpkgs/slack-desktop/template +++ b/srcpkgs/slack-desktop/template @@ -1,7 +1,7 @@ # Template file for 'slack-desktop' pkgname=slack-desktop version=4.36.140 -revision=1 +revision=2 archs="x86_64" depends="xdg-utils" short_desc="Messaging app for teams" @@ -19,6 +19,7 @@ do_install() { vinstall usr/share/applications/slack.desktop 644 usr/share/applications vinstall usr/share/pixmaps/slack.png 644 usr/share/pixmaps mkdir ${DESTDIR}/usr/bin + vsed -i -e 's/,"WebRTCPipeWireCapturer"/,"LebRTCPipeWireCapturer"/' usr/lib/slack/resources/app.asar vcopy usr/lib/slack usr/lib ln -s ../lib/slack/slack ${DESTDIR}/usr/bin/slack }