From 2b32dad7c0a95a1ff8290022b5e14ae0106388fa Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 29 Mar 2016 12:15:15 -0700 Subject: [PATCH 1/1] Quote the DBUS_SESSION_BUS_ADDRESS variable in the shell file Some D-Bus daemon versions set multiple addresses separated by semi-colon, which breaks sourcing of the file. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=94746 Signed-off-by: Thiago Macieira --- tools/dbus-launch-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/dbus-launch-x11.c b/tools/dbus-launch-x11.c index c7e3330..a09444b 100644 --- a/tools/dbus-launch-x11.c +++ b/tools/dbus-launch-x11.c @@ -414,7 +414,7 @@ set_address_in_file (char *address, pid_t pid, Window wid) "# If the DBUS_SESSION_BUS_ADDRESS environment variable is set, it will\n" "# be used rather than this file.\n" "# See \"man dbus-launch\" for more details.\n" - "DBUS_SESSION_BUS_ADDRESS=%s\n" + "DBUS_SESSION_BUS_ADDRESS='%s'\n" "DBUS_SESSION_BUS_PID=%ld\n" "DBUS_SESSION_BUS_WINDOWID=%ld\n", get_machine_uuid (), -- 2.7.3