From f084bca48ea7633aa43bfb63832cc710766c13c3 Mon Sep 17 00:00:00 2001 From: Marius Gripsgard Date: Sun, 9 Aug 2020 22:30:00 +0200 Subject: Start indicator in systemd when ayatana-indicators.target is started This starts the indicator with the ayatana-indicators.target Taken from: https://github.com/ubports/indicator-datetime/commit/313c78c0f4bd66fcc130757189cdbd3429c50657 --- debian/ayatana-indicator-datetime.links | 2 ++ debian/control | 1 + debian/rules | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 debian/ayatana-indicator-datetime.links (limited to 'debian') diff --git a/debian/ayatana-indicator-datetime.links b/debian/ayatana-indicator-datetime.links new file mode 100644 index 0000000..ba57b5b --- /dev/null +++ b/debian/ayatana-indicator-datetime.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-datetime.service /usr/lib/systemd/user/ayatana-indicators.target.wants/ayatana-indicator-datetime.service diff --git a/debian/control b/debian/control index e91fd9c..d2a27e5 100644 --- a/debian/control +++ b/debian/control @@ -6,6 +6,7 @@ Build-Depends: cmake, cmake-extras (>= 0.10), dbus, debhelper (>= 9), + dh-systemd, intltool, libaccounts-glib-dev (>= 1.18), libglib2.0-dev (>= 2.35.4), diff --git a/debian/rules b/debian/rules index 7b52e8c..37eb8b7 100755 --- a/debian/rules +++ b/debian/rules @@ -3,7 +3,7 @@ LDFLAGS += -Wl,-z,defs -Wl,--as-needed %: - dh $@ + dh $@ --with systemd override_dh_auto_configure: dh_auto_configure -- -Denable_tests=OFF -- cgit v1.2.3