From bda49567cf56194aeeb937e0542158bf5f5888f7 Mon Sep 17 00:00:00 2001 From: Marius Gripsgard Date: Sun, 9 Aug 2020 22:34:36 +0200 Subject: Start indicator in systemd when ayatana-indicators.target is started This starts the indicator with the ayatana-indicators.target --- debian/ayatana-indicator-display.links | 2 ++ debian/control | 1 + debian/rules | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 debian/ayatana-indicator-display.links (limited to 'debian') diff --git a/debian/ayatana-indicator-display.links b/debian/ayatana-indicator-display.links new file mode 100644 index 0000000..b5d4c0b --- /dev/null +++ b/debian/ayatana-indicator-display.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-display.service /usr/lib/systemd/user/ayatana-indicators.target.wants/ayatana-indicator-display.service diff --git a/debian/control b/debian/control index d244612..908046b 100644 --- a/debian/control +++ b/debian/control @@ -22,6 +22,7 @@ Build-Depends: cmake, googletest | google-mock (>= 1.6.0+svn437), # for packaging debhelper (>= 9), + dh-systemd, # for systemd unit systemd [linux-any], Standards-Version: 4.1.1 diff --git a/debian/rules b/debian/rules index 4ff937e..d3e74c8 100755 --- a/debian/rules +++ b/debian/rules @@ -11,7 +11,7 @@ DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk %: - dh $@ --parallel + dh $@ --parallel --with systemd get-orig-source: uscan --noconf --force-download --rename --download-current-version --destdir=.. -- cgit v1.2.3