From ee4c1ca711fdcfefd4e1d77b116b83c8af149c7a Mon Sep 17 00:00:00 2001 From: Marius Gripsgard Date: Sun, 9 Aug 2020 22:12:27 +0200 Subject: Start indicator in systemd when ayatana-indicators.target is started This starts the indicator with the ayatana-indicators.target Patch from: https://bazaar.launchpad.net/~mterry/indicator-session/systemd-lifecycle/diff/489 --- data/ayatana-indicator-session.service.in | 5 ++++- debian/ayatana-indicator-session.links | 2 ++ debian/rules | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 debian/ayatana-indicator-session.links diff --git a/data/ayatana-indicator-session.service.in b/data/ayatana-indicator-session.service.in index 6ec2776..e0cbcde 100644 --- a/data/ayatana-indicator-session.service.in +++ b/data/ayatana-indicator-session.service.in @@ -1,8 +1,11 @@ [Unit] Description=Ayatana Indicator Session Service PartOf=graphical-session.target -After=ayatana-indicators-pre.target +After=ayatana-indicators.target [Service] ExecStart=@pkglibexecdir@/ayatana-indicator-session-service Restart=on-failure + +[Install] +WantedBy=ayatana-indicators.target diff --git a/debian/ayatana-indicator-session.links b/debian/ayatana-indicator-session.links new file mode 100644 index 0000000..4c6eb22 --- /dev/null +++ b/debian/ayatana-indicator-session.links @@ -0,0 +1,2 @@ +# Because dh-systemd does not yet support user units, we manually make the WantedBy link +/usr/lib/systemd/user/ayatana-indicator-session.service /usr/lib/systemd/user/ayatana-indicators.target.wants/ayatana-indicator-session.service diff --git a/debian/rules b/debian/rules index 3cbbbc8..68ec87b 100755 --- a/debian/rules +++ b/debian/rules @@ -7,7 +7,7 @@ DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk %: - dh $@ + dh $@ --with systemd override_dh_install: find debian/ayatana-indicator-session/usr/lib -name *.la -delete -- cgit v1.2.3