Remote Desktop Portal
Wrapper around the org.freedesktop.portal.RemoteDesktop D-Bus interface. Provides convenient methods to access remote desktop properties and create sessions.
This portal maintains an active session internally. After calling startSession, all input methods (pointer, keyboard, touch) will use the active session automatically.
Properties
The currently active session handle, set automatically by startSession.
Returns the available device types as a bitmask.
Functions
Clears the active session.
Connect to an EIS (Event Input Stream) implementation.
Creates a new remote desktop session.
Notify about a keyboard keycode event.
Notify about a keyboard keysym event.
Notify about a discrete pointer axis event (e.g., mouse wheel click).
Notify about a pointer button event.
Notify about a relative pointer motion event.
Notify about an absolute pointer motion event.
Notify about a touch-down event.
Notify about a touch motion event.
Notify about a touch-up event.
Returns a Flow that emits when the active session is closed.
Select input devices to remote control.
Start the remote desktop session. This will typically result in the portal presenting a dialog letting the user select what to share, including devices and optionally screen content if screencast sources were selected.
Convenience function that performs the complete remote desktop session flow: creates a session, selects devices, and starts the session.