dbus/dbus.user.socket
David Herrmann 896fb4a918 dbus: make use of [Install] unit sections
Rather than installing symlinks during the installation manually, put
in [Install] sections into the units. This has the same effect, but
allows changing the installation conditions via systemd-presets, which
are provided by the 'fedora-release' package.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2018-08-29 11:44:36 +02:00

10 lines
213 B
SYSTEMD

[Unit]
Description=D-Bus User Message Bus Socket
[Socket]
ListenStream=%t/bus
ExecStartPost=-/usr/bin/systemctl --user set-environment DBUS_SESSION_BUS_ADDRESS=unix:path=%t/bus
[Install]
WantedBy=sockets.target