Gio.dbus_generate_guid

function dbus_generate_guid(): String {
    // Gjs wrapper for g_dbus_generate_guid()
}
  

Generate a D-Bus GUID that can be used with e.g. Gio.DBusConnection.new.

See the D-Bus specification regarding what strings are valid D-Bus GUID (for example, D-Bus GUIDs are not RFC-4122 compliant).

Since 2.26

Returns

A valid D-Bus GUID. Free with GLib.free.