Files
komorebi/nix/linux/tests/vm/suites/rdp/test.py
T
LGUG2Z f01853ceca refactor(repo): move the KDE and macOS nix files under nix/ (pure move)
komorebi-for-kde/nix/ -> nix/linux/
komorebi-for-mac/nix/ -> nix/macos/

The nix expressions of the platforms (modules, option files, VM test suites, kwin effects,
the darwin module) sit next to the existing nix/workspace-src.nix. Renames only (252
files); the flakes that import them are replaced by one root flake later in this stack, so
nix does not evaluate at this revision.
2026-11-05 15:03:27 -08:00

22 lines
1.0 KiB
Python

# KRDP, Plasma's RDP server, runs in the Plasma session of the session node as the guest to develop
# in runs it (nix/dev/krdp.nix), and a client logs in and gets a picture of the desktop. What only a
# real session can tell: that the unit starts in the session once it has a password, that KWin lets
# KRDP have the screen without asking, that a client with the password is let in and one without
# it is not, and that the picture the client gets is what the display shows.
#
# The client is FreeRDP's, on an X server of its own (`komorebi_vm.RdpClient`), so its picture can be
# read back and compared with a screenshot of the display. The suite `run-kde` runs the same checks
# with a password that the demo guest takes from the host's directory.
from komorebi_vm import Checks
from komorebi_vm.core.suite import platform_only, run_suite
from komorebi_vm.platforms.kde.extras import rdp as kde_rdp
start_all()
machine.wait_for_unit("multi-user.target")
checks = Checks()
run_suite(checks, platform_only("kde", kde_rdp.run, machine, checks, SCALE))
checks.finish()