homescreen: import environment file on service start 56/27056/2
authorArnaud Ferraris <arnaud.ferraris@collabora.com>
Tue, 21 Dec 2021 16:38:12 +0000 (17:38 +0100)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tue, 21 Dec 2021 21:31:01 +0000 (21:31 +0000)
`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 <arnaud.ferraris@collabora.com>
Change-Id: I62c8597eac7d14d9d5166f9c559a1538398cd0c8

recipes-demo/homescreen/files/homescreen.service

index b95d583..7b765c7 100644 (file)
@@ -4,6 +4,7 @@ After=agl-compositor.service
 
 [Service]
 Type=simple
+EnvironmentFile=-/etc/default/homescreen
 ExecStart=/usr/bin/homescreen
 Restart=on-failure