]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Quote the DBUS_SESSION_BUS_ADDRESS variable in the shell file
authorThiago Macieira <thiago.macieira@intel.com>
Tue, 29 Mar 2016 19:15:15 +0000 (12:15 -0700)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 30 Jun 2016 12:51:45 +0000 (13:51 +0100)
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 <thiago@kde.org>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
tools/dbus-launch-x11.c

index c7e33309bac742b8656d79b5175ea5f2ab8a02b7..a09444beeb7ce8f459d6d1906e3b509fc450b09a 100644 (file)
@@ -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 (),