StatusNotifierManager

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

Wrapper around the org.kde.StatusNotifierWatcher D-Bus interface. Provides access to the KDE StatusNotifier protocol for system tray integration.

Constructors

Link copied to clipboard
constructor(connection: DBusConnection)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard

Returns the protocol version supported by the StatusNotifierWatcher.

Link copied to clipboard

Returns the list of registered StatusNotifierItem service names.

Link copied to clipboard

Returns true if a StatusNotifierHost is currently registered with the watcher.

Link copied to clipboard
fun registerItem(item: StargateStatusNotifierItem, identifier: String = STATUS_NOTIFIER_ITEM_SERVICE_PREFIX): String

Exports a StatusNotifierItem on the session bus and registers it with the watcher. Returns the well-known service name that was claimed (e.g. "org.kde.StatusNotifierItem-1234-1").