summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacobo Aragunde Pérez <jaragunde@igalia.com>2019-10-02 22:44:54 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2019-10-08 09:28:56 +0000
commit2435856512bfae534fe9ac1460ef686fb7651e1d (patch)
tree67b7b190b04ed7787a0ad97c930b28dc92c1be70
parent9974b47e4947bc54dffd59974ab860c5ddccca62 (diff)
Add WAIT_FOR_HOST_SERVICE envvar to unit files for webapps
This envvar will make the application launcher wait for the WebAppMgr service to be fully running before attempting to launch the app. Otherwise, launcher would resort to running the app in standalone mode, which would conflict with the WebAppMgr service when it's finally running. It will be useful for webapps that are auto-started, like the future homescreen or the html5-launcher. Bug-AGL: SPEC-2793 Signed-off-by: Jacobo Aragunde Pérez <jaragunde@igalia.com> Change-Id: I97f927c856b0dd2643f8b7492dff06b2c459761d
-rw-r--r--conf/unit/service.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/conf/unit/service.inc b/conf/unit/service.inc
index bebf25a..64e6e5f 100644
--- a/conf/unit/service.inc
+++ b/conf/unit/service.inc
@@ -120,6 +120,7 @@ Environment=XDG_DATA_HOME=APP_WORK_DIR
Environment=XDG_CONFIG_HOME=APP_WORK_DIR
Environment=XDG_CACHE_HOME=APP_WORK_DIR
Environment=XDG_RUNTIME_DIR=RUN_DIR
+ON_CONTENT(text/html, Environment=WAIT_FOR_HOST_SERVICE="1")
IF_AGL_DEVEL
; Needed to enable debug