meta-html5-framework/wam: adjust how wam is started 77/21977/1
authorStephane Desneux <stephane.desneux@iot.bzh>
Thu, 25 Jul 2019 16:02:37 +0000 (16:02 +0000)
committerStephane Desneux <stephane.desneux@iot.bzh>
Thu, 25 Jul 2019 16:02:37 +0000 (16:02 +0000)
commit053a150748d7243bb3c5fdaea3307e5579672a25
tree70da5a38adb52751d8a2428a57a760bfdb7eb682
parent8dba12fbe260825bd85f131c270593c5e46601b0
meta-html5-framework/wam: adjust how wam is started

WebAppMgr has to be launched for each user (but not through
the systemd user session as it would require too much privileges for the user).

For this purpose, we create a systemd service instanciated for each user
by the application framework through afm-user-session@ service.

This patch also distributes the environment and service file near the recipe
instead of having those integration files in the sources (it's easier to follow
AGL evolution without changing the upstream source code)

Also, for the HTML5 demos to work, each app must request the following permissions in
their config.xml:
<param name="urn:AGL:permission::public:display" value="required" />
<param name="urn:AGL:permission::public:audio" value="required" />

Bug-AGL: SPEC-2586

Change-Id: I4286fd9e1d1a1dcff48d3fdbfab2bf8d57f0fa0e
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
meta-html5-framework/recipes-wam/wam/files/WebAppMgr.env [new file with mode: 0644]
meta-html5-framework/recipes-wam/wam/files/WebAppMgr@.service [new file with mode: 0644]
meta-html5-framework/recipes-wam/wam/wam_git.bb