busGetFinish

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 gio.async_result.AsyncResult

a #GAsyncResult obtained from the #GAsyncReadyCallback passed to gio.global.busGet

Return Value

Type: gio.dbus_connection.DBusConnection

a #GDBusConnection or null if error is set. Free with gobject.object.ObjectG.unref.