From: Arnaud Ferraris Date: Tue, 21 Dec 2021 16:38:12 +0000 (+0100) Subject: homescreen: import environment file on service start X-Git-Tag: 12.91.0~1 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F56%2F27056%2F2;p=AGL%2Fmeta-agl-demo.git homescreen: import environment file on service start `homescreen` relies on `/etc/default/homescreen` to contain its environment variables, however this feature was lost when we switched to systemd services. This commit restores this feature by instructing systemd to source `/etc/default/homescreen` if it exists. Bug-AGL: SPEC-4161 Signed-off-by: Arnaud Ferraris Change-Id: I62c8597eac7d14d9d5166f9c559a1538398cd0c8 --- diff --git a/recipes-demo/homescreen/files/homescreen.service b/recipes-demo/homescreen/files/homescreen.service index b95d58386..7b765c7b8 100644 --- a/recipes-demo/homescreen/files/homescreen.service +++ b/recipes-demo/homescreen/files/homescreen.service @@ -4,6 +4,7 @@ After=agl-compositor.service [Service] Type=simple +EnvironmentFile=-/etc/default/homescreen ExecStart=/usr/bin/homescreen Restart=on-failure