meta-html5-framework/wam: adjust how wam is started 78/21978/2
authorStephane Desneux <stephane.desneux@iot.bzh>
Thu, 25 Jul 2019 16:02:37 +0000 (16:02 +0000)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 25 Jul 2019 21:53:52 +0000 (21:53 +0000)
commitf5d5e1584e10ae0f1447c3aaeb4da93408300669
tree239be4a859f19670f8dda9e7e8abc4736eec9911
parent818ffe2f16a7340413a545996c20a8981c3cd25e
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