Gio.DBusConnection.prototype.get_unique_name

function get_unique_name(): String {
    // Gjs wrapper for g_dbus_connection_get_unique_name()
}
  

Gets the unique name of connection as assigned by the message bus. This can also be used to figure out if connection is a message bus connection.

Since 2.26

Returns

the unique name or null if connection is not a message bus connection. Do not free this string, it is owned by connection.