Signed-off-by: David Zeuthen <davidz@redhat.com>
#include <signal.h>
#include <stdio.h>
+#include <gio/gio.h>
+
#include "gdbus-sessionbus.h"
/* ---------------------------------------------------------------------------------------------------- */
{
if (temporary_address == NULL)
{
- /* TODO: maybe use a more random name etc etc */
- temporary_address = g_strdup_printf ("unix:path=/tmp/g-dbus-tests-pid-%d", getpid ());
+ gchar *guid;
+ guid = g_dbus_generate_guid ();
+ temporary_address = g_strdup_printf ("unix:abstract=/tmp/g-dbus-tests-pid-%d-uuid-%s", getpid (), guid);
+ g_free (guid);
}
return temporary_address;