Bug 492251

Summary: Screen share permission under Wayland are not remembered across reboots
Product: [Plasma] xdg-desktop-portal-kde Reporter: Marco <phoenix_87_c>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: aleixpol, jgrulich, kde, nate, nicolas.fella
Priority: NOR    
Version First Reported In: 6.1.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Marco 2024-08-27 08:23:16 UTC
SUMMARY

Under Wayland, applications requesting permission to share screen show the screen choice window at every reboot, even if the option that specifies to preserve the session in the future is selected.

STEPS TO REPRODUCE
1. Boot Plasma 6 in a Wayland session
2. Run any application requesting to access the screen (e.g., I am using Rust Desk)
3. Choose the desired screen and specify you want to remember the choice.
4. Reboot and run the application again, and try sharing the screen again.

OBSERVED RESULT

The application asks again permission to share the screen.

EXPECTED RESULT

The previous choice should be remembered.


SOFTWARE/OS VERSIONS

KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION

This is very bad, because it makes unattended access to the machine with tools like Team Viewer and Rust Desk useless. What is the point of using these applications if one has to be physically able to confirm the screen permissions every time?

This bug has been present since Plasma 6 was released.
Comment 1 Nicolas Fella 2024-08-27 22:49:30 UTC
This is a bug in RustDesk, it doesn't request the stream to be remembered (it does not pass a persist_mode to the portal request; see https://github.com/rustdesk/rustdesk/blob/master/libs/scrap/src/wayland/pipewire.rs#L666).

It works as expected with e.g. OBS Studio
Comment 2 David Edmundson 2024-08-28 07:59:04 UTC
Please report to rustdesk