aboutsummaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorMarius Gripsgard <marius@ubports.com>2020-08-09 22:00:36 +0200
committerMarius Gripsgard <marius@ubports.com>2020-08-09 22:13:16 +0200
commitc011884c8912fb8245584cd46b2ef30022ac8133 (patch)
tree84a912beb9bf3ff48a5960c50bb8b777426fc643 /debian
parent09e84775b56615f39e11313949f06fc7a1e885a8 (diff)
downloadayatana-indicator-power-c011884c8912fb8245584cd46b2ef30022ac8133.tar.gz
ayatana-indicator-power-c011884c8912fb8245584cd46b2ef30022ac8133.tar.bz2
ayatana-indicator-power-c011884c8912fb8245584cd46b2ef30022ac8133.zip
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-power/systemd-lifecycle/revision/311
Diffstat (limited to 'debian')
-rw-r--r--debian/ayatana-indicator-power.links2
-rwxr-xr-xdebian/rules2
2 files changed, 3 insertions, 1 deletions
diff --git a/debian/ayatana-indicator-power.links b/debian/ayatana-indicator-power.links
new file mode 100644
index 0000000..df9db33
--- /dev/null
+++ b/debian/ayatana-indicator-power.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-power.service /usr/lib/systemd/user/ayatana-indicators.target.wants/ayatana-indicator-power.service
diff --git a/debian/rules b/debian/rules
index ddfbd41..73b8d09 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,7 +11,7 @@ DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
%:
- dh $@
+ dh $@ --with systemd
override_dh_install:
find debian/ayatana-indicator-power -name \*.la -delete