summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2020-06-16 15:44:40 -0400
committerScott Murray <scott.murray@konsulko.com>2020-06-16 15:52:42 -0400
commitac6f7ed88291b81cb70981bd7463b6a3b292fece (patch)
treed227ccab89ae0d2bae1a9ef5e794b929e64517a8 /conf
parentf8cee78b734acf4636d134afa3f81ddcc06241e6 (diff)
Add weston dependency for units with display permissionjellyfish_9.99.1jellyfish/9.99.19.99.1
Add logic to the systemd unit template to add a dependency on the weston@display.service if the widget has the display permission. This fixes races with apps against weston / the new AGL compositor. Bug-AGL: SPEC-3411 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ib89da253933e7e34cfe5dfeb668c8d9df63f0e51
Diffstat (limited to 'conf')
-rw-r--r--conf/unit/service.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/conf/unit/service.inc b/conf/unit/service.inc
index 81554d2..ea08220 100644
--- a/conf/unit/service.inc
+++ b/conf/unit/service.inc
@@ -48,6 +48,11 @@ ENDIF
After=Network.target
+IF_PERM(:public:display)
+BindsTo=weston@display.service
+After=weston@display.service
+ENDIF
+
# Adds check to smack
ConditionSecurity=smack
%nl