mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-14 17:58:06 +02:00
What we are aiming for here is that `dbus-launch --autolaunch` will exit with an error if it would have been unable to advertise the bus in a way that will be picked up by other instances of itself, so that we don't get a proliferation of autolaunched dbus-launch instances, each with its own dbus-daemon, and none of them talking to the others. However, we don't need to do that *immediately*: we can try to look for an existing instance first. If we find one, then we can assume that it's suitable for use, even if X11 autolaunching was disabled at compile-time or if connecting to the X server failed at runtime. We only need to bail out if we get to the point where we are ready to start forking child processes. This lets systemd users run `dbus-launch --autolaunch` to find a systemd-managed dbus-daemon, even if X11 autolaunching is disabled. When combined with the previous commit, it also lets macOS users run `dbus-launch --autolaunch` to find a launchd-managed dbus-daemon. Resolves: dbus/dbus#385 Signed-off-by: Simon McVittie <smcv@collabora.com> |
||
|---|---|---|
| .. | ||
| docker/windows | ||
| .gitignore | ||
| ci-build.sh | ||
| ci-install.sh | ||
| cmake-format | ||
| CMakeLists.txt | ||
| dbus-cleanup-sockets.c | ||
| dbus-echo.c | ||
| dbus-launch-win.c | ||
| dbus-launch-x11.c | ||
| dbus-launch.c | ||
| dbus-launch.h | ||
| dbus-monitor.c | ||
| dbus-print-message.c | ||
| dbus-print-message.h | ||
| dbus-run-session.c | ||
| dbus-send.c | ||
| dbus-spam.c | ||
| dbus-update-activation-environment.c | ||
| dbus-uuidgen.c | ||
| GetAllMatchRules.py | ||
| Makefile.am | ||
| run-with-tmp-session-bus.sh | ||
| strtoll.c | ||
| strtoull.c | ||
| test-tool.c | ||
| test-tool.h | ||
| tool-common.c | ||
| tool-common.h | ||
| user-path.reg.in | ||
| Win32.Manifest | ||