Commit 98e44992 authored by Jan Alexander Steffens's avatar Jan Alexander Steffens Committed by Simon McVittie

user dbus.socket: Set DBUS_SESSION_BUS_ADDRESS

As discussed in <>.
See also <>,

[smcv: use AC_PATH_PROG to find systemctl; ignore systemctl failure]
Signed-off-by: default avatarSimon McVittie <>
Reviewed-by: David Rheinsberg's avatarDavid Herrmann <>
[smcv: add links to earlier bug reports elsewhere]
parent 4eddd1bf
......@@ -3,6 +3,7 @@ Description=D-Bus User Message Bus Socket
ExecStartPost=-@SYSTEMCTL@ --user set-environment DBUS_SESSION_BUS_ADDRESS=unix:path=%t/bus
......@@ -1202,6 +1202,12 @@ if test x$enable_systemd = xyes -a x$have_systemd != xyes ; then
AC_MSG_ERROR([Explicitly requested systemd support, but systemd not found])
# If not found in $PATH, we might still have systemd and systemctl at runtime
# (perhaps dbus is being compiled in a minimal chroot with no systemd).
# Assume the upstream-recommended location. Distributors with split /usr
# can override this with ./configure SYSTEMCTL=/bin/systemctl
AC_PATH_PROG([SYSTEMCTL], [systemctl], [/usr/bin/systemctl])
# libaudit detection
if test x$enable_libaudit = xno ; then
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment