DesktopPortal

class DesktopPortal(connection: DBusConnection) : AutoCloseable(source)

Main entry point for accessing XDG Desktop Portal interfaces. Manages the D-Bus connection and provides access to individual portals.

Constructors

Link copied to clipboard
constructor(connection: DBusConnection)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Access to the Clipboard portal for reading and writing clipboard content within a session.

Link copied to clipboard

Access to the GlobalShortcuts portal for registering global keyboard shortcuts.

Link copied to clipboard

Access to the Notification portal for sending desktop notifications.

Link copied to clipboard

Access to the OpenURI portal for opening URIs in the user's preferred application.

Link copied to clipboard

Access to the Registry portal for associating D-Bus peers with application IDs.

Link copied to clipboard

Access to the RemoteDesktop portal for remote desktop functionality.

Link copied to clipboard

Access to the ScreenCast portal for capturing screen content via PipeWire.

Link copied to clipboard

Access to the Settings portal for reading desktop appearance preferences.

Functions

Link copied to clipboard
open override fun close()

Closes the underlying D-Bus connection.