aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-demo/flutter-ics-homescreen/files/flutter-ics-homescreen.service
diff options
context:
space:
mode:
authorLisandro Pérez Meyer <lpmeyer@ics.com>2023-11-14 17:53:42 -0300
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2023-11-14 21:11:23 +0000
commita45b13ab6ba8008a461c70078ef885f7c29452a8 (patch)
treeda461335d6c170704dbd795b658c8ea7fc452eac /recipes-demo/flutter-ics-homescreen/files/flutter-ics-homescreen.service
parentc7e7f3bdd38fb8af2d95b498c7f5778a5ecaa25b (diff)
Add flutter-ics-homescreen recipe.
Bug-AGL: SPEC-4969 Change-Id: I5792df93372160e85d524dc81c3de8d2f523501e Signed-off-by: Lisandro Pérez Meyer <lpmeyer@ics.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl-demo/+/29409 Reviewed-by: Scott Murray <scott.murray@konsulko.com> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'recipes-demo/flutter-ics-homescreen/files/flutter-ics-homescreen.service')
-rw-r--r--recipes-demo/flutter-ics-homescreen/files/flutter-ics-homescreen.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/recipes-demo/flutter-ics-homescreen/files/flutter-ics-homescreen.service b/recipes-demo/flutter-ics-homescreen/files/flutter-ics-homescreen.service
new file mode 100644
index 000000000..a61b4a1de
--- /dev/null
+++ b/recipes-demo/flutter-ics-homescreen/files/flutter-ics-homescreen.service
@@ -0,0 +1,14 @@
+[Unit]
+Requires=agl-compositor.service applaunchd.service
+After=agl-compositor.service applaunchd.service
+
+[Service]
+User=agl-driver
+EnvironmentFile=/etc/default/flutter
+EnvironmentFile=-/etc/default/flutter-ics-homescreen
+Environment=XDG_RUNTIME_DIR=/run/user/1001/
+ExecStart=/usr/bin/flutter-auto --b=/usr/share/flutter/flutter_ics_homescreen/${FLUTTER_VERSION}/${FLUTTER_RUNTIME} --j=/usr/share/flutter/flutter-ics-homescreen.json --xdg-shell-app-id=homescreen
+Restart=on-failure
+
+[Install]
+WantedBy=graphical.target