Bug 475505 - Ending portal does not stop screen cast
Summary: Ending portal does not stop screen cast
Status: RESOLVED FIXED
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.27.8
Platform: Fedora RPMs Linux
: NOR grave
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-12 08:44 UTC by Jonas Eymann
Modified: 2023-10-13 21:36 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.27.9
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Eymann 2023-10-12 08:44:30 UTC
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
Comment 1 Bug Janitor Service 2023-10-12 08:47:02 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/235
Comment 2 Nate Graham 2023-10-13 21:36:48 UTC
Thanks for noticing. It was cherry-picked into Plasma 5 with https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/7d3e4285a0f95e45c5fcde10f63d46343c16630f.