summaryrefslogtreecommitdiffstats
path: root/recipes-demo/flutter-ics-homescreen/files/flutter-ics-homescreen.service
diff options
context:
space:
mode:
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