Bug 459151

Summary: KDE screen sharing portal does not appear (Wayland session)
Product: [Plasma] kwin Reporter: frederic.parrenin <frederic.parrenin>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: aleixpol
Priority: NOR    
Version First Reported In: 5.25.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description frederic.parrenin@univ-grenoble-alpes.fr 2022-09-15 10:27:53 UTC
OBSERVED RESULT
Currently, KDE screen sharing does not work under Wayland with Zoom.

EXPECTED RESULT
KDE screen sharing portal should be used

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian Bookworm
(available in About System)
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.4

ADDITIONAL INFORMATION
I don't know if this is a problem with Zoom or if the KDE screen sharing portal is not ready yet, but this is a shortcoming when using KDE/Wayland.
Comment 1 Vlad Zahorodnii 2022-09-15 11:30:43 UTC
It's a problem with zoom. iirc zoom only allows screensharing on wayland even though they use desktop portals api, which should work on plasma. You could set XDG_CURRENT_DESKTOP=GNOME envvar when launching zoom to fake running gnome, i.e. `env XDG_CURRENT_DESKTOP=GNOME <zoom command>`.
Comment 2 Vlad Zahorodnii 2022-09-15 11:31:01 UTC
only allows screensharing on gnome*
Comment 3 frederic.parrenin@univ-grenoble-alpes.fr 2022-09-15 12:59:51 UTC
Thanks for the tip, but it does not work: when I click on screen sharing and then select the portal, no window appears.
Moreover, the application is now blurry at 200% scaling.
Comment 4 frederic.parrenin@univ-grenoble-alpes.fr 2022-09-16 08:51:19 UTC
Today I tried to share screen in BBB in firefox, but the KDE screen sharing portal does not appear either.
So I think it is a general problem in my setup, not only a Zoom problem.
So I change the title to be more generic.

I am on Debian testing.
I tried to search on the internet, but I found no answer to my problem.
Maybe some missing packages?
I do have xdg-desktop-portal-kde installed.
Comment 5 Vlad Zahorodnii 2022-09-16 08:55:18 UTC
CC'ing Aleix, maybe he knows what might be wrong.
Comment 6 frederic.parrenin@univ-grenoble-alpes.fr 2022-09-16 09:01:40 UTC
So I solved my problem!
I had installed the xdg-desktop-portal-kde package, but a restart of my computer was further needed.
Probably because the systemd daemon was not running.
Now I can start using the Wayland session seriously...
Thanks.