Fix launching of dbus-daemon on Windows in paths containing spaces
authorWolfgang Baron <netz.frei freenet de>
Wed, 18 Jul 2012 17:09:44 +0000 (18:09 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 18 Jul 2012 17:10:07 +0000 (18:10 +0100)
commit2a50cb475bfaf331e2451bbe70c2b3bbdd1ad69d
treea6d27a355826909b22e2197110077fde36520dfe
parenta5d4c4aa35c3115f963a263ecae5879b5f58c453
Fix launching of dbus-daemon on Windows in paths containing spaces

If dbus is installed in a path, which contains a space, dbus-launch will
not launch the daemon. That is so, because a command line is built from
just the path to the daemon and a parameter. The path has to be
surrounded with quotes. This can be done unconditionally, because the
quotes do not cause any trouble even if they are not needed.

Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49450
tools/dbus-launch-win.c