Bug 492251 - Screen share permission under Wayland are not remembered across reboots
Summary: Screen share permission under Wayland are not remembered across reboots
Status: RESOLVED DOWNSTREAM
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: 6.1.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-27 08:23 UTC by Marco
Modified: 2024-08-28 07:59 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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