From ac6f7ed88291b81cb70981bd7463b6a3b292fece Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Tue, 16 Jun 2020 15:44:40 -0400 Subject: Add weston dependency for units with display permission 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 Change-Id: Ib89da253933e7e34cfe5dfeb668c8d9df63f0e51 --- conf/unit/service.inc | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit 1.2.3-korg