This is a workaround to enable headless remote access to a KDE Plasma system running on Wayland.
- Plasma supports remote desktop access via PipeWire and desktop portals.
- However, the RDP server only runs once a graphical session is active.
- The default login manager SDDM does not support remote graphical login.
Allow headless access via VNC to SDDM and then RDP into the KDE Plasma session.
sudo pacman -S --needed sway wayvncor your distro’s equivalent
File: /etc/sway/sddm_config
xwayland disable
exec wayvncFile: /etc/sddm.conf.d/10-wayland.conf
[General]
DisplayServer=wayland
GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell
[Wayland]
# Default: CompositorCommand=kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1
# Override with sway:
CompositorCommand=sway -c /etc/sway/sddm_config-
Connect via VNC to the sway-powered SDDM greeter.
- Recommended: tunnel via SSH for security.
-
Log in to the KDE Plasma session.
-
Connect via RDP to the now-running graphical session.
It’s a two-step process, but works reliably in a headless environment.