[Xfce4-commits] [apps/xfce4-notifyd] 01/01: Add a systemd user unit corresponding to the D-Bus session service

noreply at xfce.org noreply at xfce.org
Wed Jul 27 22:33:37 CEST 2016


This is an automated email from the git hooks/post-receive script.

ochosi pushed a commit to branch master
in repository apps/xfce4-notifyd.

commit cf683fa5636e276d2f592bcd9bacb4efb04e79f0
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Wed Sep 30 14:24:49 2015 +0100

    Add a systemd user unit corresponding to the D-Bus session service
    
    This lets systemd put the service in its own cgroup, instead of
    treating it as part of dbus.service.
    
    Signed-off-by: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
---
 Makefile.am                                                   | 8 ++++++--
 xfce4-notifyd/org.xfce.xfce4-notifyd.Notifications.service.in | 1 +
 xfce4-notifyd/xfce4-notifyd.service.in                        | 7 +++++++
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index d81db04..70789f3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -74,16 +74,20 @@ xfce4_notifyd_config_xfce4_notifyd_config_LDADD = \
 	$(common_ldadd) \
 	$(LIBNOTIFY_LIBS)
 
-
 servicedir = $(datadir)/dbus-1/services
 service_in_files = xfce4-notifyd/org.xfce.xfce4-notifyd.Notifications.service.in
 service_DATA = $(service_in_files:.service.in=.service)
 
+systemd_userdir = $(prefix)/lib/systemd/user
+systemd_user_in_files = xfce4-notifyd/xfce4-notifyd.service.in
+systemd_user_DATA = $(systemd_user_in_files:.service.in=.service)
+
 dist_service = \
 	$(service_in_files) \
+	$(systemd_user_in_files) \
 	xfce4-notifyd/notify-dbus.xml \
 	xfce4-notifyd/xfce-notify-marshal.list
-distclean_service = $(service_DATA)
+distclean_service = $(service_DATA) $(systemd_user_DATA)
 
 dist_man1_MANS = \
 	xfce4-notifyd-config/xfce4-notifyd-config.1
diff --git a/xfce4-notifyd/org.xfce.xfce4-notifyd.Notifications.service.in b/xfce4-notifyd/org.xfce.xfce4-notifyd.Notifications.service.in
index 578a4b5..1e1fee7 100644
--- a/xfce4-notifyd/org.xfce.xfce4-notifyd.Notifications.service.in
+++ b/xfce4-notifyd/org.xfce.xfce4-notifyd.Notifications.service.in
@@ -1,3 +1,4 @@
 [D-BUS Service]
 Name=org.freedesktop.Notifications
 Exec=@notifydir@/xfce4-notifyd
+SystemdService=xfce4-notifyd.service
diff --git a/xfce4-notifyd/xfce4-notifyd.service.in b/xfce4-notifyd/xfce4-notifyd.service.in
new file mode 100644
index 0000000..5e4a0b1
--- /dev/null
+++ b/xfce4-notifyd/xfce4-notifyd.service.in
@@ -0,0 +1,7 @@
+[Unit]
+Description=XFCE notifications service
+
+[Service]
+Type=dbus
+BusName=org.freedesktop.Notifications
+ExecStart=@notifydir@/xfce4-notifyd

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list