FS#70989 - [discord] Can't screen share even if Pipewire is installed

Attached to Project: Community Packages
Opened by allexj (allexj) - Saturday, 22 May 2021, 13:26 GMT
Last edited by T.J. Townsend (blakkheim) - Thursday, 01 June 2023, 19:31 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To morganamilo (morganamilo)
Filipe Laíns (FFY00)
T.J. Townsend (blakkheim)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
In order to be able to share the ENTIRE screen, or to be able to share wayland only (not xwayland) windows it's not enough to have Pipewire installed, because there's one chromium flag to manually enable pipewire support. I don't know how to enable it in this package so I tried it using discord via Google Chrome browser, and enabling "enable-webrtc-pipewire-capturer" flag in chrome://flags, and now it works.

Is there a way to enable this flag in this package without the need to use Google Chrome to be properly share screen?
This task depends upon

Closed by  T.J. Townsend (blakkheim)
Thursday, 01 June 2023, 19:31 GMT
Reason for closing:  Upstream
Comment by Evangelos Foutras (foutrelis) - Sunday, 23 May 2021, 02:00 GMT
That flag exists in Chromium too: chrome://flags/#enable-webrtc-pipewire-capturer

Does enabling that make it work?
Comment by allexj (allexj) - Sunday, 23 May 2021, 08:34 GMT
Yes
Comment by Evangelos Foutras (foutrelis) - Sunday, 23 May 2021, 08:42 GMT
So what's the issue? :)
Comment by allexj (allexj) - Sunday, 23 May 2021, 15:14 GMT
How to enable it in Discord app? I tried using --enable-webrtc-pipewire-capturer launching electron, but it doesn't work... how could I enable it?
Comment by Evangelos Foutras (foutrelis) - Sunday, 23 May 2021, 15:47 GMT
Sorry, because the bug got assigned to me and Felix (Chromium maintainers) I thought you wanted to screen share from Chromium. :)

A quick Google search seems to suggest using the browser version of Discord in Chromium:

https://github.com/flathub/com.discordapp.Discord/issues/89#issuecomment-692999742

(Reassigned to Filipe who maintains the discord package.)
Comment by allexj (allexj) - Sunday, 23 May 2021, 18:39 GMT
don't worry :)

yeah I know, I can use Chromium or Firefox to use Discord and screen share works... I was just wondering if it was possible to have this option in the official app.
Comment by Anthony E (chovy) - Sunday, 26 September 2021, 03:16 GMT
new version of discord is available.
Comment by Johannes Löthberg (demize) - Wednesday, 06 July 2022, 20:34 GMT
The Discord app uses a Node plugin with its own custom WebRTC stack, so nothing can really be done until they either implement support for PipeWire capture on their own, or switch to using the PipeWire support in CEF. And they don't seem to be really planning on doing either of those.

Loading...