aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Gripsgard <marius@ubports.com>2020-08-09 21:56:14 +0200
committerMarius Gripsgard <marius@ubports.com>2020-08-09 21:56:14 +0200
commit42358cc35ebf50629ec431ddbc1608daa6fc5499 (patch)
tree0923a188e28adc1e1ab0635a87da7d4adc52dd38
parent7ceee62eb53671e2dd5211ca693e47877b55f2dd (diff)
downloadlibayatana-indicator-42358cc35ebf50629ec431ddbc1608daa6fc5499.tar.gz
libayatana-indicator-42358cc35ebf50629ec431ddbc1608daa6fc5499.tar.bz2
libayatana-indicator-42358cc35ebf50629ec431ddbc1608daa6fc5499.zip
Use indicators.target as the systemd lifecycle unit
Use indicators.target as the systemd lifecycle unit, not indicators-pre.target. Patch from: https://code.launchpad.net/~mterry/libindicator/rename-unit/+merge/321556
-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