Bug 458265 - When using wayland, plasma is unable to share screen in web apps
Summary: When using wayland, plasma is unable to share screen in web apps
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.25.4
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-24 17:23 UTC by David
Modified: 2022-08-26 15:01 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David 2022-08-24 17:23:16 UTC
SUMMARY
When using plasma on wayland, screen casting feature of web services like Google Meet, but also Discord and so on, stops working. Only mouse cursor is visible, on a black screen. Sharing a window instead works.

STEPS TO REPRODUCE
1. Open a screen sharing service/app
2. Share entire screendddd

OBSERVED RESULT
Screen sharing does not work. Only a black area with the mouse cursor is visible

EXPECTED RESULT
Of course the entire screen to be shared just as normal

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 35
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.2
Kernel Version: 5.18.18-100.fc35.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Manufacturer: Dell Inc.
Product Name: Inspiron 5570

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-08-25 13:34:50 UTC
Cannot reproduce; these work for me. Probably an issue with either the local PipeWire setup, or a bug in the PipeWire-based screencasting support code.
Comment 2 Zamundaaa 2022-08-25 22:38:09 UTC
The Discord app doesn't support Wayland, it uses X11 instead of xdg portals for screen sharing
Comment 3 David 2022-08-26 15:01:54 UTC
(In reply to Zamundaaa from comment #2)
> The Discord app doesn't support Wayland, it uses X11 instead of xdg portals
> for screen sharing

based on your suggestions, I investigated the XDG portal affair and consequently:
- found another Discord client having support for it (webcord)
- enabled the "enable-webrtc-pipewire-capturer" flag in chromium based browser 
in order to have screen sharing working. Other issues arose then, but that's for other reports. 
I'll leave this here in the hope it will guide other users looking for this issue on the web.

Thank you