getConnectionUnixProcessId method

Future<int> getConnectionUnixProcessId(
  1. String name
)

Returns the Unix process ID of the process running the client that owns name.

Implementation

Future<int> getConnectionUnixProcessId(String name) async {
  var result = await callMethod(
      destination: 'org.freedesktop.DBus',
      path: DBusObjectPath('/org/freedesktop/DBus'),
      interface: 'org.freedesktop.DBus',
      name: 'GetConnectionUnixProcessID',
      values: [DBusString(name)],
      replySignature: DBusSignature('u'));
  return result.returnValues[0].asUint32();
}