getConnectionUnixUser method

Future<int> getConnectionUnixUser(
  1. String name
)

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

Implementation

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