To get screen sharing in Slack to properly work under Wayland, you need to explicitly tell Slack to use PipeWire for screen capturing. Copy Slack’s desktop file from /usr/share/applications/slack.desktop
to ~/.local/share/applications/slack.desktop
and modify the Exec
line to look like:
Exec=/usr/bin/slack --enable-features=WebRTCPipeWireCapturer %U
Now restart Slack and screen sharing should work properly.
Looks like this workaround is no longer valid using Ubuntu 22.04.
@Thorsten / It worked for me on 22.04
working for me on 22.04, thanks. Initially I thought it didn’t but I had not exited the existing slack instance; it was quite persistent.
/usr/share/applications/slack.desktop
does not exist when installed with snap, it is on
/var/lib/snapd/desktop/applications/slack_slack.desktop
Anyway, I tried both with the desktop and directly with
slack --enable-features=WebRTCPipeWireCapturer %U
and it didn’t work. It works diferently, so it’s doing something, but even worst than before. It “let me choose” a screen, that can be an application or a full screen, but neither of them works as it is closed inmediatly after I click it. There is an icon then in the top right corner out of slack that let me know I’m sharing a screen, but I’m not and the icon disappear some seconds after it appear.
I tried also installing directly from .deb, and I had in the path from the post, but same behaviour described.
It seems I’m not the only one with the issue: https://github.com/flathub/com.slack.Slack/issues/101#issuecomment-1276765545
I’d recommend against modifying the “`slack.desktop file in place. It’s better to copy it to .local/share/applications and edit it there. Otherwise it’s just going to get wiped on the next slack update.
Didn’t work for me on Manjaro Gnome