SUMMARY *** When sharing the screen in a Plasma Wayland session using TeamViewer, the screen cast continues to get transmitted even after the user has stopped the portal session. This can have potential security implications as the user is wrongly assuming that the session was stopped. *** STEPS TO REPRODUCE 1. Install recent TeamViewer version on a system running KDE Plasma (tested with Fedora 38 and KDE Plasma 5.27.8) 2. Connect to the system when running a Wayland session 3. In the status bar of KDE Plasma, click the screen icon indicating an active remote desktop portal session and click "End" OBSERVED RESULT * Remote input gets stopped properly, but screen cast is still being updated on the remote side EXPECTED RESULT * Screen cast should not get updated anymore SOFTWARE/OS VERSIONS Linux/KDE Plasma: Fedora 38, KDE neon testing KDE Plasma Version: 5.27.8 ADDITIONAL INFORMATION * TeamViewer should also close the connection due to the stopped signal. This is a known issue at TeamViewer (however, this would then hide above problem) * I found this merge request which might be related, but I think it was only merged to master, i.e. not the 5.27 branch: https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/215
A possibly relevant merge request was started @ https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/235
Thanks for noticing. It was cherry-picked into Plasma 5 with https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/7d3e4285a0f95e45c5fcde10f63d46343c16630f.