The server, agent, and viewer
or web browser
and session management
input and clipboard
TMD Server listens for viewers, manages persistent session definitions, and associates connections with an available desktop. TMD Agent runs in the desktop's operating-system context. It captures displays, selects encoders, and handles remote input. TMD Viewer displays decoded frames and sends user interaction to the selected session.
The installed Windows service and Linux system service manage agents for the available desktops. On macOS, launchd starts the agent as a GUI LaunchAgent inside its owner's Aqua login session. The root server does not start the macOS GUI agent directly.
A definition is not a running desktop
A session definition records an ID, owner, type, and virtual-desktop autostart policy. TMD keeps these definitions across service restarts. Runtime state and agent PIDs are established again when the service starts.
A console points to an existing physical desktop. A virtual session starts a private Linux desktop. active means the session's agent has registered and can accept viewers; it does not prove that the desktop is painting correctly or that a GPU encoder was selected.
What happens during a connection
- The viewer establishes a TLS-protected WSS or native TCP connection.
- The user authenticates with an operating-system account, using the default
systemauthentication method. - TMD selects the requested active session and checks its owner. With no session ID, it selects an accessible active session.
- The endpoints negotiate display codecs and capabilities. Different frame layers can use different codecs.
- The agent captures and encodes the selected monitor; the viewer decodes it and returns input.
Rendering, capture, and encoding are separate
A GPU that renders desktop applications is not automatically a supported capture or encoding device. For example, an Xvfb virtual desktop uses software application rendering, but an eligible hardware encoder can still encode supported captured images. Standard Wayland capture uses PipeWire even when NVENC encodes its motion frames.
Verify the actual capture, encoder, and decoder selections in the logs. See Capture, codecs, and performance.
Disconnecting and recovery
Closing a viewer disconnects it; it does not end a running virtual desktop. An agent failure can recover while the same desktop and viewer bindings are retained. Desktop logout, session closure, or desktop failure ends that runtime. A server restart ends virtual desktops and starts again only those definitions with autostart enabled.