Screencast interface missing

Bug #1879580 reported by Gustav Hartvigsson
72
This bug affects 15 people
Affects Status Importance Assigned to Milestone
xdg-desktop-portal (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

The `org.freedesktop.portal.ScreenCast` inferface is missing in the version shipped with Ubuntu 20.04.

This interface is needed for OBS no work in non-X11 environments.

Further reading:
https://flatpak.github.io/xdg-desktop-portal/portal-docs.html#gdbus-org.freedesktop.portal.ScreenCast

Tags: focal groovy
description: updated
description: updated
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Note that this requires pipewire support to be enabled in mutter and xdg-desktop-portal, which are both in main, which then means pipewire needs to be in main (see bug 1802533). I believe this is what is blocking https://salsa.debian.org/debian/xdg-desktop-portal/-/blob/debian/master/debian/rules#L8 from being set to --enable-pipewire.

Also note that pipewire 0.3 is needed for GNOME Shell 3.36, which isn't packaged in Debian or Ubuntu yet ( see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=954022 ).

Once these are sorted then I guess potentially -Dremote_desktop=false could be set to true here as well https://salsa.debian.org/gnome-team/mutter/-/blob/debian/master/debian/rules#L33

Changed in xdg-desktop-portal (Ubuntu):
status: New → Confirmed
Changed in xdg-desktop-portal (Ubuntu):
importance: Undecided → Low
Revision history for this message
claudio@ubuntu (claudio.ubuntu) wrote :

The build without `org.freedesktop.portal.ScreenCast` prevents e.g. Chrome/Chromium to share the desktop through MS teams when using Wayland, e.g. like it works on Fedora (https://uwot.eu/blog/microsoft-teams-on-fedora-and-wayland-with-screenshare/).

Revision history for this message
claudio@ubuntu (claudio.ubuntu) wrote :

Chromimm output:

[110445:110445:1013/141808.679718:ERROR:base_capturer_pipewire.cc(517)] Failed to create a screen cast session: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.ScreenCast” on object at path /org/freedesktop/portal/desktop

Revision history for this message
Luis Alberto Pabón (copong) wrote :

I can confirm this is a problem in 20.10 as well. Pipewire 0.3 is available but apps (eg Chromium via snap and Chrome via deb) cannot acquire outputs to share with the error Claudio pasted above.

tags: added: focal
Revision history for this message
Gustav Hartvigsson (gustav-hartvigsson) wrote :

We need an update on this issue.

The fact that there has not been any progress posted in this thread is very disconcerting.

Revision history for this message
Sebastien Bacher (seb128) wrote :

The option to be enabled would require pipewire to be moved to main (the list of officially supported packaged), it's waiting for a security review at the moment
https://bugs.launchpad.net/ubuntu/+source/pipewire/+bug/1802533

The issue has been considered lower priority because pipewire is still not considered stable nor tested enough to be default and most of Ubuntu users are on x11 which doesn't need it.

Andrea Agnolin (agno94)
tags: added: groovy
Revision history for this message
Andrea Agnolin (agno94) wrote :

As stay-at-home request intensifies having screen-sharing capabilities are becoming more important.

Revision history for this message
Sebastien Bacher (seb128) wrote :

The default Ubuntu session is x11 and that has perfectly working screen sharing

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xdg-desktop-portal - 1.8.0-3

---------------
xdg-desktop-portal (1.8.0-3) unstable; urgency=medium

  * debian/rules: Build with pipewire support in ubuntu as well (LP: #1879580)

 -- Marco Trevisan (Treviño) <email address hidden> Thu, 11 Feb 2021 19:08:03 +0100

Changed in xdg-desktop-portal (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Lukas Wiest (lukas-wiest) wrote :

Do I see that right, that this means for people wanting to use wayland and have working screensharing (which is a kind of important thing to have working right now), are forced to use a non-LTS Ubuntu version 21.04+?

And until the fix for [1] makes it into 21.10, it's basically 21.04 only that's theoretically having a working solution for the criterias:
- wayland
- non-buggy DE
- screenshare

Or will you maybe take into consideration to rebuild xdg-desktop-portal with the needed flags for the Screencast interface for 20.04?

[1]: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1947467

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.