aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/CMakeLists.txt13
-rw-r--r--data/ayatana-indicators.target7
2 files changed, 20 insertions, 0 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index 7f12337..2949f15 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -4,3 +4,16 @@ find_package(GSettings)
set(ENV{LC_ALL} "C")
execute_process(COMMAND intltool-merge -quiet --xml-style --utf8 --no-translations "${CMAKE_CURRENT_SOURCE_DIR}/org.ayatana.common.gschema.xml.in" "${CMAKE_CURRENT_BINARY_DIR}/org.ayatana.common.gschema.xml")
add_schema("org.ayatana.common.gschema.xml")
+
+# ayatana-indicators.target
+
+pkg_check_modules(SYSTEMD systemd)
+
+if (${SYSTEMD_FOUND})
+ if (${SYSTEMD_VERSION} VERSION_LESS 247)
+ set(SYSTEMD_USER_UNIT_DIR "${CMAKE_INSTALL_FULL_LIBDIR}/systemd/user")
+ else()
+ pkg_get_variable(SYSTEMD_USER_UNIT_DIR systemd systemd_user_unit_dir)
+ endif()
+ install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/ayatana-indicators.target" DESTINATION "${SYSTEMD_USER_UNIT_DIR}")
+endif()
diff --git a/data/ayatana-indicators.target b/data/ayatana-indicators.target
new file mode 100644
index 0000000..0dce2e9
--- /dev/null
+++ b/data/ayatana-indicators.target
@@ -0,0 +1,7 @@
+[Unit]
+Description=Target representing the lifecycle of the Ayatana Indicators. Each indicator should be bound to it in its individual service file.
+PartOf=graphical-session.target
+
+[Install]
+# Old name for this target, kept for compatibility
+Alias=ayatana-indicators-pre.target