summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaud Ferraris <arnaud.ferraris@collabora.com>2021-12-21 17:38:12 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2021-12-21 21:31:01 +0000
commite25ae6d1304260be5e64e163472f140eaf9d922f (patch)
treefb1c7e30e89e045e0b8afb9c5982001de07c4409
parente3e399730736deb17b4fa36f2fedda39cf510243 (diff)
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 <arnaud.ferraris@collabora.com> Change-Id: I62c8597eac7d14d9d5166f9c559a1538398cd0c8
-rw-r--r--recipes-demo/homescreen/files/homescreen.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-demo/homescreen/files/homescreen.service b/recipes-demo/homescreen/files/homescreen.service
index b95d5838..7b765c7b 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