dbus-launch: Replace slashes in DISPLAY if present
authorWilliam Earley <nitrous@sourt.in>
Sun, 27 Sep 2020 11:39:04 +0000 (12:39 +0100)
committerSimon McVittie <smcv@collabora.com>
Fri, 17 Dec 2021 12:53:26 +0000 (12:53 +0000)
commit73aa7f9739fd79ec508b1d3efe2d599a1bc999d6
tree2856792eef1014fa4d03f7346a0ceba81bbfc70d
parent7dc84fd22b0134785bb5258df4e40456cfc12811
dbus-launch: Replace slashes in DISPLAY if present

dbus-daemon fails to autolaunch with X11 on macOS 10.8+ because XQuartz
(the X11 package for macOS) provides a value for `$DISPLAY` that is
not expected by dbus, in that it contains `/` characters. This is
addressed by replacing the invalid path character `/` with `_`.

Resolves: #8
Resolves: #311
(cherry picked from commit 3545d0f4de0194ced1fde6935fd7d1326dd9e832)
tools/dbus-launch-x11.c