Free with [gobject.object.ObjectWrap.unref].
busGetFinish
fn
gio.dbus_connection.DBusConnection busGetFinish(gio.async_result.AsyncResult res)Finishes an operation started with [gio.global.busGet].
The returned object is a singleton, that is, shared with other callers of [gio.global.busGet] and [gio.global.busGetSync] for bus_type. In the event that you need a private message bus connection, use [gio.global.dbusAddressGetForBusSync] and [gio.dbus_connection.DBusConnection.newForAddress] with G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT and G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION flags.
Note that the returned #GDBusConnection object will (usually) have the #GDBusConnection:exit-on-close property set to true.
Parameters
res | a #GAsyncResult obtained from the #GAsyncReadyCallback passed to [gio.global.busGet] |
Returns
a #GDBusConnection or null if error is set.
Throws
[ErrorWrap]