From 321af7331c91a174b52eb5e17d8ab5b3e72ce5cb Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Wed, 27 Jul 2022 16:50:30 -0400 Subject: meta-app-framework: Update app template scheme Changes to support the move to systemd unit based app enumeration in applaunchd: - Bump applaunchd SRCREV to pick up enumeration changes. - Tweak the polkit rule to match agl-app* instead of agl-app@* to allow more flexibility with respect to different app templates. - Tweak the Description field definition in the agl-app service template to just use the instance name, as that field is now used for the application display name by applaunchd. - Add a agl-app-web service template for web apps. - Add a agl-app.bbclass for use in application recipes to simplify installation of the now required systemd template instances and potential generation of override files to tweak application configuration. - Split the agl-app and agl-app-web templates into their own packages in the applaunchd recipe so they can be depended on by applications as required. - Move applaunchd installed systemd units and override files to /lib/systemd/system since that matches the upstream recommendation for units installed as part of the system installation. Bug-AGL: SPEC-4466 Signed-off-by: Scott Murray Change-Id: I32ff6c9624850662856b79a2b14b33a05e7f9a65 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/27835 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jose Dapena Paz Reviewed-by: Jan-Simon Moeller --- .../recipes-config/polkit-rule-agl-app/files/50-agl-app.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta-app-framework/recipes-config/polkit-rule-agl-app') diff --git a/meta-app-framework/recipes-config/polkit-rule-agl-app/files/50-agl-app.rules b/meta-app-framework/recipes-config/polkit-rule-agl-app/files/50-agl-app.rules index 5fa34fbd2..dd4b6940d 100644 --- a/meta-app-framework/recipes-config/polkit-rule-agl-app/files/50-agl-app.rules +++ b/meta-app-framework/recipes-config/polkit-rule-agl-app/files/50-agl-app.rules @@ -1,6 +1,6 @@ polkit.addRule(function(action, subject) { if (action.id == "org.freedesktop.systemd1.manage-units" && - action.lookup("unit").indexOf("agl-app@") == 0 && + action.lookup("unit").indexOf("agl-app") == 0 && subject.user == "agl-driver") { return polkit.Result.YES; } -- cgit 1.2.3-korg