tools/dbus-launch.c, line 969: xdisplay = NULL; When compiling with -X, reports (obviously) undeclared xdisplay. Reproducible: Always
Wrapped the patch into an if use X statement. This fix is for when dbus-launch hangs around after X exits, so no point applying it when not built with X.