aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2016-07-19 09:49:49 +0200
committerTed Gould <ted@gould.cx>2016-07-19 09:49:49 +0200
commitd90092b6f2d57728bdb61adfde56d4b593050277 (patch)
treef8c33b6eaaaf6ca0232d046728d4cd07e583c0fe /data
parent621bec19950a83a9a5bde75a2db0b130dd03f608 (diff)
downloadayatana-indicator-display-d90092b6f2d57728bdb61adfde56d4b593050277.tar.gz
ayatana-indicator-display-d90092b6f2d57728bdb61adfde56d4b593050277.tar.bz2
ayatana-indicator-display-d90092b6f2d57728bdb61adfde56d4b593050277.zip
Adding a systemd user session unit
Diffstat (limited to 'data')
-rw-r--r--data/CMakeLists.txt30
-rw-r--r--data/indicator-display.override1
-rw-r--r--data/indicator-display.service.in7
3 files changed, 38 insertions, 0 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index 7edaa44..4fbb925 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -60,6 +60,36 @@ install (FILES "${UPSTART_XDG_AUTOSTART_FILE}"
RENAME "${XDG_AUTOSTART_NAME}")
##
+## Systemd Unit File
+##
+
+# where to install
+pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir)
+message (STATUS "${SYSTEMD_USER_DIR} is the systemd user unit file install dir")
+
+set (SYSTEMD_USER_NAME "${CMAKE_PROJECT_NAME}.service")
+set (SYSTEMD_USER_FILE "${CMAKE_CURRENT_BINARY_DIR}/${SYSTEMD_USER_NAME}")
+set (SYSTEMD_USER_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${SYSTEMD_USER_NAME}.in")
+
+# build it
+set (pkglibexecdir "${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}")
+configure_file ("${SYSTEMD_USER_FILE_IN}" "${SYSTEMD_USER_FILE}")
+
+# install it
+install (FILES "${SYSTEMD_USER_FILE}"
+ DESTINATION "${SYSTEMD_USER_DIR}")
+
+##
+## Upstart systemd override Job File
+##
+
+set (UPSTART_SYSTEMD_OVERRIDE_DIR "${CMAKE_INSTALL_FULL_DATADIR}/upstart/systemd-session/upstart")
+message (STATUS "${UPSTART_SYSTEMD_OVERRIDE_DIR} is the Upstart override Job File for systemd dir")
+
+install (FILES "${CMAKE_CURRENT_SOURCE_DIR}/${CMAKE_PROJECT_NAME}.override"
+ DESTINATION "${UPSTART_SYSTEMD_OVERRIDE_DIR}")
+
+##
## Unity Indicator File
##
diff --git a/data/indicator-display.override b/data/indicator-display.override
new file mode 100644
index 0000000..2905494
--- /dev/null
+++ b/data/indicator-display.override
@@ -0,0 +1 @@
+manual
diff --git a/data/indicator-display.service.in b/data/indicator-display.service.in
new file mode 100644
index 0000000..78e38ad
--- /dev/null
+++ b/data/indicator-display.service.in
@@ -0,0 +1,7 @@
+[Unit]
+Description=Indicator Display Backend
+PartOf=graphical-session.target
+After=indicators-pre.target
+
+[Service]
+ExecStart=@pkglibexecdir@/indicator-display-service