Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2144516

Summary: Screencasting not working in Firefox or Chrome
Product: Red Hat Enterprise Linux 9 Reporter: adam winberg <adam.winberg>
Component: gnome-shellAssignee: Debarshi Ray <debarshir>
Status: CLOSED DUPLICATE QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.1CC: jadahl, jgrulich, rstrode, tpelka, tpopela
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-29 11:12:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description adam winberg 2022-11-21 14:45:07 UTC
Description of problem:
Since update to 9.1 we can no longer screencast from video conference in google-chrome or Firefox. 

With Chrome the behaviour is the same as if 'enable-webrtc-pipewire-capturer' is not enabled - i.e. I only get the 'native' Chrome dialog and can only choose to share chrome tabs, not other windows or screens. 

With Firefox I first get the question to allow using operating system settings for window/screen sharing, but after allowing this nothing happens when I try to share - no dialogs or prompts. 

When using Chrome I get the following in the journal:
Nov 21 15:26:59 c21936 google-chrome.desktop[1424363]: [1761696:1761696:1121/152659.001389:ERROR:screen_capture_portal_interface.cc(48)] Failed to request session: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.ScreenCast” on object at path /org/freedesktop/portal/desktop
Nov 21 15:26:59 c21936 google-chrome.desktop[1424363]: [1761696:1761696:1121/152659.001413:ERROR:base_capturer_pipewire.cc(61)] ScreenCastPortal failed: 3


Version-Release number of selected component (if applicable):
xdg-desktop-portal-1.12.4-1.el9.x86_64

Comment 1 Jan Grulich 2022-11-21 15:46:48 UTC
It works for me with the same version of xdg-desktop-portal. Do you have xdg-desktop-portal-gnome installed? I guess you do as my understanding is it was working before, but just to be sure.

Can you kill all xdg-desktop-portal-[gtk,gnome] processes and run "/usr/libexec/xdg-desktop-portal --verbose" and attach here the output? From the error message it looks the screencast portal is not loaded.

Comment 2 adam winberg 2022-11-21 16:25:19 UTC
Hm, I did not have xdg-desktop-portal-gnome installed, only xdg-desktop-portal-gtk, but it did work before. 

After installing it it works better but not great - I can share my entire screen but not any windows, when I try the list of windows is empty. 
Running with '--verbose' shows:

XDP: screen cast session owned by ':1.81' created
XDP: Running app windows changed, wake up monitor thread
XDP: Running app windows changed, wake up monitor thread
XDP: Running app windows changed, wake up monitor thread
XDP: Running app windows changed, wake up monitor thread
** (/usr/libexec/xdg-desktop-portal:1922181): WARNING **: 17:23:06.260: Failed to get application states: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list
XDP: Running app windows changed, wake up monitor thread
XDP: Running app windows changed, wake up monitor thread

Comment 3 Tomas Popela 2022-11-21 17:36:39 UTC
(In reply to adam winberg from comment #2)
> Hm, I did not have xdg-desktop-portal-gnome installed, only
> xdg-desktop-portal-gtk, but it did work before. 
> 
> After installing it it works better but not great - I can share my entire
> screen but not any windows, when I try the list of windows is empty. 

That's https://bugzilla.redhat.com/show_bug.cgi?id=2079194

Comment 4 adam winberg 2022-11-21 19:30:27 UTC
Ouch, that bug is from April. 
So the bug with windows sharing being broken if xdg-desktop-portal-gnome is installed has been in RHEL9 all the time, but with 9.1 you no longer can use screensharing at all without that package?

Comment 5 Jan Grulich 2022-11-22 08:13:59 UTC
We already depend on xdg-desktop-portal-gtk in gnome-shell, but in RHEL 9.1 we introduced xdg-desktop-portal-gnome that takes over some parts of xdg-desktop-portal-gtk. We should also add runtime dependency to this package as it apparently can happen it won't get installed and users won't be able to share their screens.

Comment 6 Tomas Popela 2022-11-29 11:12:45 UTC
This was fixed through 2079194

*** This bug has been marked as a duplicate of bug 2079194 ***