I made the following changes to get screensharing running on wayland:
diff --git a/PKGBUILD b/PKGBUILD
index af27b76..74c710b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,14 +13,19 @@ depends=('gtk3' 'libsecret' 'libxss' 'nss' 'xdg-utils')
optdepends=('libappindicator-gtk3: Systray indicator support'
'org.freedesktop.secrets: Keyring password store support')
source=("https://downloads.slack-edge.com/releases/linux/${pkgver}/prod/x64/${pkgname}-${pkgver}-amd64.deb"
+ "slack.sh"
"${pkgname}.patch")
noextract=("${pkgname}-${pkgver}-amd64.deb")
b2sums=('b7d457fcb6a2518eaea7efc4d7b43f01f8c1da8a1218d3c2c2c14e195004102be344c6f4e2b60dd4f4677e53ea976cb7b0b102e3e0eec385df881eecdee4a7cd'
+ 'd39bba7db4e1854dbba2afefa5cc108ff698befaef65539a7f5b09581e81f753bdbdd091ed0df9470b99f2aa0eda0985874f01628b8974a458eef0df774ec404'
'b5786265fcaf85be4134a444d5c2376f3b3753b667ac8b5237d74cbc643433148ec0a4f8ddfe65276d6029cc6941b464938e6c37f904c2369cbe14ca3f1819dd')
package() {
bsdtar -O -xf "slack-desktop-${pkgver}"*.deb data.tar.xz | bsdtar -C "${pkgdir}" -xJf -
+ # Fix screensharing on wayland
+ install -D "slack.sh" "$pkgdir/usr/bin/slack"
+
# Fix hardcoded icon path in .desktop file
patch -d "${pkgdir}" -p1 <"${pkgname}".patch
diff --git a/slack.sh b/slack.sh
new file mode 100644
index 0000000..a402971
--- /dev/null
+++ b/slack.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/lib/slack/slack --enable-features=WebRTCPipeWireCapturer "$@"
Pinned Comments
ogarcia commented on 2020-02-06 11:44 (UTC) (edited on 2020-02-06 11:44 (UTC) by ogarcia)
Please, don't ask for add
lsb-release
as dependency. In Arch Linux this package is not needed to run Slack Desktop.And before asking for any other dependency as
make
orpatch
or whatever, please read the wiki.