summaryrefslogtreecommitdiff
path: root/bus/systemd-user/dbus.socket.in
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2015-10-22 19:50:29 +0200
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2015-10-26 11:59:36 +0000
commit98e4499240050ea3b41951fda0c06b863b89b152 (patch)
tree8df3f1aa6a72a76ba96a9515906336a36ade7ea4 /bus/systemd-user/dbus.socket.in
parent4eddd1bf52dd00dfc651f3aa3e2411d9d438ef51 (diff)
user dbus.socket: Set DBUS_SESSION_BUS_ADDRESS
As discussed in <https://github.com/systemd/systemd/issues/1600>. See also <https://bugs.archlinux.org/task/46721>, <https://bugzilla.gnome.org/show_bug.cgi?id=756420> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=92612 [smcv: use AC_PATH_PROG to find systemctl; ignore systemctl failure] Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: David Herrmann <dh.herrmann@gmail.com> [smcv: add links to earlier bug reports elsewhere]
Diffstat (limited to 'bus/systemd-user/dbus.socket.in')
-rw-r--r--bus/systemd-user/dbus.socket.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/bus/systemd-user/dbus.socket.in b/bus/systemd-user/dbus.socket.in
index 77958f7c..4793d1d4 100644
--- a/bus/systemd-user/dbus.socket.in
+++ b/bus/systemd-user/dbus.socket.in
@@ -3,6 +3,7 @@ Description=D-Bus User Message Bus Socket
[Socket]
ListenStream=%t/bus
+ExecStartPost=-@SYSTEMCTL@ --user set-environment DBUS_SESSION_BUS_ADDRESS=unix:path=%t/bus
[Install]
WantedBy=sockets.target