summaryrefslogtreecommitdiff
path: root/dbus/dbus-bus.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2012-08-13 19:57:13 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-08-13 19:57:13 +0100
commitb5d36dc27d1905d4d46ad7f0097f0ea0e0776adb (patch)
tree1a3cb1bd09fb76536de490de46c7239bf7fb7861 /dbus/dbus-bus.c
parent05b0b9e65b6a58f0b0cb56d6ee8cf100061250b3 (diff)
downloaddbus-b5d36dc27d1905d4d46ad7f0097f0ea0e0776adb.tar.gz
Split DBUS_SESSION_BUS_DEFAULT_ADDRESS into listen, connect addresses and set better defaults
On Unix, the connect address should basically always be "autolaunch:" but the listen address has to be something you can listen on. On Windows, you can listen on "autolaunch:" or "autolaunch:scope=*install-path", for instance, and the dbus-daemon is involved in the auto-launching process. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38201 Reviewed-by: David Zeuthen <davidz@redhat.com> [default address changed to autolaunch: for interop with GDBus -smcv] Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'dbus/dbus-bus.c')
-rw-r--r--dbus/dbus-bus.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dbus/dbus-bus.c b/dbus/dbus-bus.c
index fadc3a8b..6f81c74a 100644
--- a/dbus/dbus-bus.c
+++ b/dbus/dbus-bus.c
@@ -192,12 +192,12 @@ init_session_address (void)
if (!retval)
return FALSE;
- /* The DBUS_SESSION_BUS_DEFAULT_ADDRESS should have really been named
- * DBUS_SESSION_BUS_FALLBACK_ADDRESS.
- */
+ /* We have a hard-coded (but compile-time-configurable) fallback address for
+ * the session bus. */
if (bus_connection_addresses[DBUS_BUS_SESSION] == NULL)
bus_connection_addresses[DBUS_BUS_SESSION] =
- _dbus_strdup (DBUS_SESSION_BUS_DEFAULT_ADDRESS);
+ _dbus_strdup (DBUS_SESSION_BUS_CONNECT_ADDRESS);
+
if (bus_connection_addresses[DBUS_BUS_SESSION] == NULL)
return FALSE;