aboutsummaryrefslogtreecommitdiff
path: root/data/Makefile.am
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-08-10 10:07:58 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-08-10 10:07:58 +0200
commit8189b651e2ab4b22fb2c471e8436e93cb914a49b (patch)
treef6c3c0e7d555b6e6838489e5a6c5f2de41579a24 /data/Makefile.am
parentac5d6867a8ce34b8a77bf5545bbb4b36f8bafb15 (diff)
downloadayatana-indicator-notifications-8189b651e2ab4b22fb2c471e8436e93cb914a49b.tar.gz
ayatana-indicator-notifications-8189b651e2ab4b22fb2c471e8436e93cb914a49b.tar.bz2
ayatana-indicator-notifications-8189b651e2ab4b22fb2c471e8436e93cb914a49b.zip
Start indicator in systemd when ayatana-indicators.target is started.
Diffstat (limited to 'data/Makefile.am')
-rw-r--r--data/Makefile.am19
1 files changed, 17 insertions, 2 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 1960ad7..52f61a7 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,3 +1,5 @@
+NULL =
+
SUBDIRS = icons
gsettings_file = org.ayatana.indicator.notifications.gschema.xml
@@ -12,10 +14,23 @@ $(gsettings_file).in: $(gsettings_file).in.in
@GSETTINGS_RULES@
+#if defined(HAVE_SYSTEMD)
+systemdservice_file = ayatana-indicator-notifications.service
+$(systemdservice_file): $(systemdservice_file).in
+ $(AM_V_GEN) sed -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@
+
+systemddir = $(SYSTEMD_USERDIR)
+systemd_DATA = $(systemdservice_file)
+#endif
+
EXTRA_DIST = \
- $(gsettings_file).in.in
+ $(gsettings_file).in.in \
+ $(systemdservice_file).in \
+ $(NULL)
CLEANFILES = \
$(gsettings_file) \
$(gsettings_file).in \
- *.gschema.valid
+ *.gschema.valid \
+ $(systemdservice_file) \
+ $(NULL)