[glib/wip/kdbus-junk: 34/37] change user bus file locations
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/kdbus-junk: 34/37] change user bus file locations
- Date: Wed, 10 Dec 2014 16:00:05 +0000 (UTC)
commit 5cd6c41a0cf053723b967617d6280652dc5772d2
Author: Ryan Lortie <desrt desrt ca>
Date: Tue Dec 2 15:16:46 2014 -0500
change user bus file locations
gio/gdbusaddress.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbusaddress.c b/gio/gdbusaddress.c
index fbf67a4..a80e4ca 100644
--- a/gio/gdbusaddress.c
+++ b/gio/gdbusaddress.c
@@ -1575,10 +1575,10 @@ g_dbus_address_get_for_bus_sync (GBusType bus_type,
case G_BUS_TYPE_USER:
session_bus = g_getenv ("DBUS_SESSION_BUS_ADDRESS");
if (session_bus == NULL)
- ret = g_strdup_printf ("kernel:path=/sys/fs/kdbus/%d-user/bus;%s", getuid(),
+ ret = g_strdup_printf ("kernel:path=%s/kdbus;%s", g_get_user_runtime_dir (),
get_session_address_platform_specific (&local_error));
else
- ret = g_strdup_printf ("kernel:path=/sys/fs/kdbus/%d-user/bus;%s", getuid(), session_bus);
+ ret = g_strdup_printf ("kernel:path=%s/kdbus;%s", g_get_user_runtime_dir (), session_bus);
break;
case G_BUS_TYPE_STARTER:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]