Gio.dbus_address_get_for_bus_sync

function dbus_address_get_for_bus_sync(bus_type: Gio.BusType, cancellable: Gio.Cancellable): String {
    // Gjs wrapper for g_dbus_address_get_for_bus_sync()
}
  

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.

Since 2.26

bus_type

a Gio.BusType

cancellable

a Gio.Cancellable or null

Returns

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