- Shipped
- August 16, 2026 at 5:08 PM UTC
- Author
- Kamo
- Commit
- 14273da
systemctl restart xrdp makes xrdp-sesman forget its in-memory session registry while the Xorg processes keep running. The next login cannot find the session so it creates a SECOND display for that user — and the second one renders black, because Plasma is single-instance per user and the two share one D-Bus bus. Found four displays (:10 :11 :12 :13) across two users with only two working desktops. install-agent.sh restarts xrdp on every run, so this recurred on every install. kamo-xrdp-reset.sh ends graphical sessions, reaps orphaned Xorg/chansrv processes and clears stale sockets BEFORE restarting, and install-agent.sh now calls it instead of restarting xrdp directly.