pop-os / gnome-shell

Pop!_OS fork of https://git.launchpad.net/~ubuntu-desktop/ubuntu/+source/gnome-shell
GNU General Public License v2.0
25 stars 4 forks source link

19.10/Wayland: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.ScreenCast” #20

Open Arxcis opened 4 years ago

Arxcis commented 4 years ago

Disclaimer

I am a bit unsure where to ask this question because I do not know which project is responsible for the xdg-desktop-portal. If this is the wrong place, please point me in the right direction.

Issue

Flatpak screen-sharing apps I try with PopOS 19.10+Wayland does not allow desktop sharing. I have tested:

I know that Flatpak screen-sharing needs the org.freedesktop.portal.ScreenCast-portal to work on wayland. To enable this screen-sharing, xdg-desktop-portal has to be built with pipewire-support. @see https://github.com/flatpak/xdg-desktop-portal/blob/master/src/xdg-desktop-portal.c#L313-L323.

Test

To test if xdg-desktop-portal supports org.freedesktop.portal.ScreenCast, I build the libportal test-app.

git clone https://github.com/flatpak/libportal
cd libportal
meson build/test -Dbuild-portal-test=true
ninja -C build/test
chmod +x build/test/portal-test/portal-test
./build/test/portal-test/portal-test

This gives me an interactive app, with a Screencast-button. image

When I click on the button I get the following output from GDBus

(portal-test:20579): libportal-WARNING **: 21:49:43.734: Failed to create screencast session: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.ScreenCast” on object at path /org/freedesktop/portal/desktop

image

Any hope?

Is this something that can be patched by PopOS? Do you intend to wait for Ubuntu support? As a software engineer, can I help to speed up the process somehow?