You are not logged in.

#1 2025-03-15 17:30:36

Wispy
Member
Registered: 2021-04-02
Posts: 39

Wayland doesn't support screen sharing

I have tried many many solutions on the internet but none of them work.

I am running Sway, with xdg-desktop-portal installed as well as various implementations of it. However by testing screen sharing on https://mozilla.github.io/webrtc-landing/gum_test.html, window and screen selection does not work. And journalctl outputs errors as can be seen below. Any ideas? I will be thankful for any suggestions 

wayland 1.23.1-1
sway 1:1.10.1-2
xdg-desktop-portal 1.20.0-1
xdg-desktop-portal-gtk 1.15.2-1
xdg-desktop-portal-kde 6.3.3-1
xdg-desktop-portal-wlr 0.7.1-1
bemenu-wayland 0.6.23-1
Mar 15 20:12:58 wispy-laptop xdg-desktop-por[9732]: A backend call failed: No such interface 'org.freedesktop.impl.portal.ScreenCast' at object path '/org/freedesktop/portal/desktop'
Mar 15 20:12:58 wispy-laptop sway[9160]: [9154:9154:0315/201258.759778:ERROR:screen_capture_portal_interface.cc(78)] Failed to request the session subscription.
Mar 15 20:12:58 wispy-laptop xdg-desktop-por[9732]: Failed to close session implementation: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: No such object path '/org/freedesktop/portal/desktop/session/1_197/webrtc_session124866084'
Mar 15 20:12:58 wispy-laptop sway[9160]: [9154:9154:0315/201258.760281:ERROR:base_capturer_pipewire.cc(81)] ScreenCastPortal failed: 3

I have also tried KDE on Wayland, and gUM test failed on it as well.

Last edited by Wispy (2025-03-15 17:31:20)

Offline

#2 2025-03-15 17:55:48

BS86
Member
Registered: 2022-11-03
Posts: 97

Re: Wayland doesn't support screen sharing

Must be related to something else on your system. Just tested the site you linked with Firefox on KDE Plasma Wayland and screen sharing worked fine here, both in screen and in window mode.

Offline

#3 2025-03-16 07:53:45

Wispy
Member
Registered: 2021-04-02
Posts: 39

Re: Wayland doesn't support screen sharing

Sure, but what could it be?

Offline

#4 2025-03-20 04:15:20

jamnor
Member
Registered: 2024-04-11
Posts: 7

Re: Wayland doesn't support screen sharing

I believe you need pipewire as well.

Offline

#5 2025-03-21 08:11:16

Wispy
Member
Registered: 2021-04-02
Posts: 39

Re: Wayland doesn't support screen sharing

Hey, thanks for the reply, but I already have pipewire

Offline

#6 2025-03-21 12:11:11

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,774

Re: Wayland doesn't support screen sharing

Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

This hinges on the (used) portal implementation, there's an initial problem for sure.

Also the used browser will matter - and whether it's running as native wayland client or via xwayland.

Offline

#7 2025-03-25 09:56:50

ksim
Member
Registered: 2015-11-15
Posts: 60

Re: Wayland doesn't support screen sharing

the same issue for me xdg-desktop-portal can't find any interface, no file chooser dialogue, nothing works from any app, happened after gnome 48 update

Mar 25 09:53:56 max-laptop xdg-desktop-por[5068]: Backend call failed: No such interface “org.freedesktop.impl.portal.FileChooser” on object at path /org/freedesktop/portal/desktop
Mar 25 09:54:45 max-laptop xdg-desktop-por[5068]: A backend call failed: No such interface “org.freedesktop.impl.portal.ScreenCast” on object at path /org/freedesktop/portal/desktop
Mar 25 09:54:45 max-laptop xdg-desktop-por[5068]: Failed to close session implementation: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/portal/desktop/session/1_96/webrtc_session177874067”
Mar 25 09:54:47 max-laptop xdg-desktop-por[5068]: A backend call failed: No such interface “org.freedesktop.impl.portal.ScreenCast” on object at path /org/freedesktop/portal/desktop
Mar 25 09:54:47 max-laptop xdg-desktop-por[5068]: Failed to close session implementation: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/portal/desktop/session/1_96/webrtc_session1071054924”

Last edited by ksim (2025-03-25 09:57:35)

Offline

#8 2025-03-27 07:41:34

Wispy
Member
Registered: 2021-04-02
Posts: 39

Re: Wayland doesn't support screen sharing

seth wrote:

Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

This hinges on the (used) portal implementation, there's an initial problem for sure.

Also the used browser will matter - and whether it's running as native wayland client or via xwayland.

Thanks for the response, Seth.

Here's the boot journal: http://0x0.st/8eqp.txt

I noticed it choose kde for Screencast for some reason but I don't think it should be a problem?

Mar 27 10:36:27 wispy-laptop xdg-desktop-por[792]: Choosing kde.portal for org.freedesktop.impl.portal.ScreenCast via the deprecated UseIn key

Offline

#9 2025-03-27 12:12:25

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,774

Re: Wayland doesn't support screen sharing

It ends up using the kde portal implementation, but you want xdg-desktop-portal-wlr

printenv

and nudge it towards wlr, https://wiki.archlinux.org/title/XDG_De … figuration

Offline

Board footer

Powered by FluxBB