RegistryPortal

class RegistryPortal(connection: DBusConnection)(source)

Wrapper around the org.freedesktop.host.portal.Registry D-Bus interface. Lets unsandboxed applications register their D-Bus connections and associate them with an application ID used in portals.

Constructors

Link copied to clipboard
constructor(connection: DBusConnection)

Properties

Link copied to clipboard

Returns the interface version.

Functions

Link copied to clipboard
fun register(appId: String, options: Map<String, Variant<*>> = emptyMap()): Result<Unit>

Register the D-Bus peer and associate it with an application ID. The application ID must match the basename of a .desktop file.