From 94ffb27239ba1710ee10afd1949b7e7acb1cfd7d Mon Sep 17 00:00:00 2001 From: Marius Gripsgard Date: Sun, 9 Aug 2020 22:38:37 +0200 Subject: Start indicator in systemd when ayatana-indicators.target is started This starts the indicator with the ayatana-indicators.target --- debian/ayatana-indicator-sound.links | 2 ++ debian/control | 1 + debian/rules | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 debian/ayatana-indicator-sound.links (limited to 'debian') diff --git a/debian/ayatana-indicator-sound.links b/debian/ayatana-indicator-sound.links new file mode 100644 index 0000000..afd6c9f --- /dev/null +++ b/debian/ayatana-indicator-sound.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-sound.service /usr/lib/systemd/user/ayatana-indicators.target.wants/ayatana-indicator-sound.service diff --git a/debian/control b/debian/control index 92d9fd7..de3c368 100644 --- a/debian/control +++ b/debian/control @@ -3,6 +3,7 @@ Section: sound Priority: optional Maintainer: Mike Gabriel Build-Depends: debhelper (>= 9.0), + dh-systemd, cmake, cmake-extras (>= 0.10), dbus, diff --git a/debian/rules b/debian/rules index 0cc5145..276a29d 100755 --- a/debian/rules +++ b/debian/rules @@ -3,7 +3,7 @@ export DPKG_GENSYMBOLS_CHECK_LEVEL=4 %: - dh $@ --parallel --fail-missing + dh $@ --parallel --fail-missing --with systemd override_dh_auto_configure: # Debian defines CMAKE_INSTALL_LOCALSTATEDIR as /usr/var, which is wrong. -- cgit v1.2.3