aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/Makefile.am2
-rw-r--r--data/ayatana-indicators.target (renamed from data/ayatana-indicators-pre.target)5
-rw-r--r--debian/ayatana-indicator-common.links2
3 files changed, 8 insertions, 1 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 55ae3ab..c4b1255 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,5 +1,5 @@
#if defined(HAVE_SYSTEMD)
-systemd_DATA = ayatana-indicators-pre.target
+systemd_DATA = ayatana-indicators.target
systemddir = $(SYSTEMD_USERDIR)
EXTRA_DIST = $(systemd_DATA)
#endif
diff --git a/data/ayatana-indicators-pre.target b/data/ayatana-indicators.target
index 6ce241f..0dce2e9 100644
--- a/data/ayatana-indicators-pre.target
+++ b/data/ayatana-indicators.target
@@ -1,2 +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
diff --git a/debian/ayatana-indicator-common.links b/debian/ayatana-indicator-common.links
new file mode 100644
index 0000000..160004b
--- /dev/null
+++ b/debian/ayatana-indicator-common.links
@@ -0,0 +1,2 @@
+# Because dh-systemd does not yet support user units, we manually make the Alias link
+/usr/lib/systemd/user/ayatana-indicators.target /usr/lib/systemd/user/ayatana-indicators-pre.target