Commit 02c5e3e3 authored by Simon McVittie's avatar Simon McVittie Committed by Mike Gorse

Add a systemd user service corresponding to the D-Bus session service

When using a systemd user session, this ensures that org.a11y.Bus
and its child processes (such as org.a11y.atspi.Registry) are placed in
their own cgroup, instead of being treated as part of dbus.service.

https://bugzilla.gnome.org/show_bug.cgi?id=755637
parent ce7357e5
......@@ -25,13 +25,20 @@ dbusservice_DATA = org.a11y.Bus.service
org.a11y.Bus.service: org.a11y.Bus.service.in
sed -e $(substitutions) $< > $@.tmp && mv $@.tmp $@
systemd_userdir = $(prefix)/lib/systemd/user
systemd_user_DATA = at-spi-dbus-bus.service
at-spi-dbus-bus.service: at-spi-dbus-bus.service.in Makefile
sed -e $(substitutions) $< > $@.tmp && mv $@.tmp $@
accessibility.conf: accessibility.conf.in
sed -e "s|[@]DATADIR[@]|$(datadir)|" $(srcdir)/$@.in > $@
EXTRA_DIST += org.a11y.Bus.service.in \
at-spi-dbus-bus.service.in \
accessibility.conf.in
DISTCLEANFILES = org.a11y.Bus.service \
$(systemd_user_DATA) \
accessibility.conf
-include $(top_srcdir)/git.mk
[Unit]
Description=Accessibility services bus
[Service]
Type=dbus
BusName=org.a11y.Bus
ExecStart=@libexecdir@/at-spi-bus-launcher
[D-BUS Service]
Name=org.a11y.Bus
Exec=@libexecdir@/at-spi-bus-launcher
SystemdService=at-spi-dbus-bus.service
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