Bug 458265

Summary: When using wayland, plasma is unable to share screen in web apps
Product: [Plasma] kwin Reporter: David <kitt997>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: kwin-bugs-null, nate, xaver.hugl
Priority: NOR    
Version First Reported In: 5.25.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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