https://bugs.kde.org/show_bug.cgi?id=488372

--- Comment #7 from Arjen Hiemstra <ahiems...@heimr.nl> ---
Git commit 8d76d9a634d7072fdc1036bb2f2da45b5f8dd917 by Arjen Hiemstra.
Committed on 13/06/2024 at 09:44.
Pushed by ahiemstra into branch 'Plasma/6.1'.

server: Create a single temporary portal session on server startup

We want to ask the user for permission when it's convenient, not when
there's nobody at the machine to confirm the permissions. So create a
portal session at startup to request the permisisons.

Unfortunately we cannot reuse this portal session since it leads to
reconnection issues with the PipeWire stream. While that is probably
solvable it also causes additional problems, most notably that the
"Remote Desktop" SNI will be constantly active. So instead, discard the
session after it was successfully started and create a new session when
a new connection is incoming.

This assumes the user checked "remember" for the portal permission.
Unfortunately there is not a whole lot we can do to force that. In
general the permission model here is rather lacking.
(cherry picked from commit 8cea6fb883bb387c4d1adadad3bfe79b387c1abc)

M  +35   -17   server/SessionController.cpp
M  +10   -3    server/SessionController.h
M  +1    -2    server/main.cpp

https://invent.kde.org/plasma/krdp/-/commit/8d76d9a634d7072fdc1036bb2f2da45b5f8dd917

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to