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
This commit is contained in:
Rodrigo Oliveira 2024-03-14 17:18:19 -03:00 committed by cinerea0
parent 549b0ff9b4
commit 2472d00df9

View file

@ -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 <datacobra@thinkbot.de>"
maintainer="Rodrigo Oliveira <mdkcore@qtrnn.io>"
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
}