https://bugs.kde.org/show_bug.cgi?id=529059
Bug ID: 529059
Summary: Exclusive mode (RemoteAccess) switches seat0 to the
greeter even when another user's session is in the
foreground
Classification: Plasma
Product: KRdp
Version First 6.8.2
Reported In:
Platform: CachyOS
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
DESCRIPTION
On a machine shared by several users, connecting to krdp in exclusive mode
(RemoteAccess) always calls SwitchToGreeter on Seat0, even when the connecting
user's session is not in the foreground. If another user is logged in and
working at the physical seat, their session is sent to the background and they
end up at the greeter. They have to log in again to get back, and every new
connection does it again.
The switch isn't needed in that case. The connecting user's desktop isn't on
the physical outputs, and the virtual monitor renders fine while that session
is inactive (tested).
STEPS TO REPRODUCE
1. As user A, enable Remote Desktop with exclusive mode and system user
authentication.
2. Switch user. User B logs in at the greeter on seat0 and keeps working. A's
session keeps running in the background.
3. Connect from an RDP client as A.
OBSERVED RESULT
Seat0 switches to the greeter. B's session goes to the background in the middle
of B's work, and B has to log in at the greeter again to continue. A gets the
desktop on the virtual monitor.
EXPECTED RESULT
B keeps the seat. krdp switches to the greeter only when A's own session is the
active session on seat0, which is the case the switch exists for (taking A's
desktop off the physical screens). A gets the virtual monitor either way.
SOFTWARE/OS VERSIONS
Operating System: CachyOS Linux
KDE Plasma Version: 6.8.2
KDE Frameworks Version: 6.31.0
Qt Version: 6.12.0
Kernel Version: 7.3.4-1-cachyos (64-bit)
Graphics Platform: Wayland
Display manager: plasma-login-manager 6.8.2
systemd: 262
ADDITIONAL INFORMATION
- SessionController::onNewConnection() calls switchToGreeter() unconditionally
in RemoteAccess mode, both in Plasma/6.8 and in master (checked at 02b5160c).
- The patch attached to bug 527499 (attachment 197415) calls SwitchToGreeter
only when the user's display session (login1 User.Display) is Active. That
check would fix this case too. Bug 527499 was closed as a duplicate of bug
527191, which is about plasma-login-manager autologin, so the multi-user case
isn't tracked anywhere.
- With that check, A's session stays unlocked in the background while B uses
the seat. Switching to it is covered by MR !276 (bug 528299): the clients are
disconnected and the session is locked when it becomes active.
- krdpserver runs as the systemd user unit, and the client is Windows App on
macOS.
- Workaround: --mode AdditionalDisplay plus a small watcher that calls
SwitchToGreeter only when the own session is Active, locks the session when the
last client disconnects, and locks the session and restarts krdp when the
session becomes active while a client is connected.
--
You are receiving this mail because:
You are watching all bug changes.