From: Scott Murray Date: Tue, 16 Jun 2020 19:44:40 +0000 (-0400) Subject: Add weston dependency for units with display permission X-Git-Tag: 9.99.1^0 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-main.git;a=commitdiff_plain;h=ac6f7ed88291b81cb70981bd7463b6a3b292fece 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 --- 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