aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2016-07-19 17:43:40 +0200
committerTed Gould <ted@gould.cx>2016-07-19 17:43:40 +0200
commit78839667b97defa8df19c7ad6506abed37f834eb (patch)
treea187de6fe68671afc869ac2f918ebf9bd4d0476a /data
parentbd5f4103ff2b4e7451527e5944cf31da9fcc18b2 (diff)
downloadayatana-indicator-printers-78839667b97defa8df19c7ad6506abed37f834eb.tar.gz
ayatana-indicator-printers-78839667b97defa8df19c7ad6506abed37f834eb.tar.bz2
ayatana-indicator-printers-78839667b97defa8df19c7ad6506abed37f834eb.zip
Adding a systemd user session unit
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am21
-rw-r--r--data/indicator-printers.override1
-rw-r--r--data/indicator-printers.service.in7
3 files changed, 29 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 51ed2dd..c040edb 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -6,6 +6,27 @@ EXTRA_DIST=
SUBDIRS = upstart
#
+# the systemd unit file
+#
+
+systemddir = $(SYSTEMD_USERDIR)
+systemd_DATA = indicator-printers.service
+systemd_in = $(systemd_DATA:.service=.service.in)
+$(systemd_DATA): $(systemd_in)
+ $(AM_V_GEN) $(SED) -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@
+BUILT_SOURCES += $(systemd_DATA)
+EXTRA_DIST += $(systemd_in)
+CLEANFILES += $(systemd_DATA)
+
+#
+# the systemd upstart override
+#
+
+upstart_overridedir = $(datadir)/upstart/systemd-session/upstart
+upstart_override_DATA = indicator-printers.override
+EXTRA_DIST += $(upstart_override_DATA)
+
+#
# the upstart job file
#
diff --git a/data/indicator-printers.override b/data/indicator-printers.override
new file mode 100644
index 0000000..2905494
--- /dev/null
+++ b/data/indicator-printers.override
@@ -0,0 +1 @@
+manual
diff --git a/data/indicator-printers.service.in b/data/indicator-printers.service.in
new file mode 100644
index 0000000..44b1771
--- /dev/null
+++ b/data/indicator-printers.service.in
@@ -0,0 +1,7 @@
+[Unit]
+Description=Indicator Printers Service
+PartOf=graphical-session.target
+After=indicators-pre.target
+
+[Service]
+ExecStart=@pkglibexecdir@/indicator-printers-service