dbus_client 0.0.0-dev.10 dbus_client: ^0.0.0-dev.10 copied to clipboard
A native Dart implementation of the D-Bus message bus client. This package allows Dart applications to directly access services on the Linux desktop.
A native Dart client implementation of D-Bus.
Example #
import 'package:dbus_client/dbus_client.dart';
var client = DBusClient.system();
await client.connect();
var proxy = DBusObjectProxy(client, 'org.freedesktop.hostname1', '/org/freedesktop/hostname1');
var result = await proxy.getProperty('org.freedesktop.hostname1', 'Hostname');
var hostname = (result.value as DBusString).value;
print('hostname: ${hostname}');
await client.disconnect();