From 1096492183d8f840e4b1029710e95888ef8ba094 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, adopt 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/srcpkgs/slack-desktop/template b/srcpkgs/slack-desktop/template index 4ed60d25375222..1a7288bd1a3460 100644 --- a/srcpkgs/slack-desktop/template +++ b/srcpkgs/slack-desktop/template @@ -1,11 +1,11 @@ # 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" -maintainer="dataCobra " +maintainer="Rodrigo Oliveira " license="custom:Proprietary" homepage="https://slack.com/" distfiles="https://downloads.slack-edge.com/releases/linux/${version}/prod/x64/${pkgname}-${version}-amd64.deb" @@ -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 }