pub fn dbus_address_get_for_bus_sync(
    bus_type: BusType,
    cancellable: Option<&impl IsA<Cancellable>>
) -> Result<GString, Error>
Expand description

Synchronously looks up the D-Bus address for the well-known message bus instance specified by bus_type. This may involve using various platform specific mechanisms.

The returned address will be in the D-Bus address format.

bus_type

a BusType

cancellable

a Cancellable or None

Returns

a valid D-Bus address string for bus_type or None if error is set