summaryrefslogtreecommitdiffstats
path: root/recipes-wam/wam/files
diff options
context:
space:
mode:
authorRoger Zanoni <rzanoni@igalia.com>2023-07-31 10:40:07 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2023-08-01 13:21:38 +0000
commite06caee0907d916d640ee06c86b43844f811f7c4 (patch)
tree362ac71df40256b46f22f116848b5e3f38d346f6 /recipes-wam/wam/files
parente5ab749de2db4e3902159ee641ea5df08223d813 (diff)
[wam][cef] Fix wam user and working directorypike_15.93.0pike/15.93.015.93.0
The WAM service needs to run with the correct user and proper working directory set to be able to find the nssdb containing the kuksa.val certificates. Bug-AGL: SPEC-4868 Signed-off-by: Roger Zanoni <rzanoni@igalia.com> Change-Id: I22fb5281b4f331d671fba79645435e5357bbca3e
Diffstat (limited to 'recipes-wam/wam/files')
-rw-r--r--recipes-wam/wam/files/WebAppMgr.env2
-rw-r--r--recipes-wam/wam/files/WebAppMgr.service6
2 files changed, 5 insertions, 3 deletions
diff --git a/recipes-wam/wam/files/WebAppMgr.env b/recipes-wam/wam/files/WebAppMgr.env
index 7737d784a..f1d0f28f7 100644
--- a/recipes-wam/wam/files/WebAppMgr.env
+++ b/recipes-wam/wam/files/WebAppMgr.env
@@ -64,7 +64,7 @@ ENABLE_LAUNCH_OPTIMIZATION=1
NETWORK_STABLE_TIMEOUT=3
WAM_SWITCHES="\
- --user-data-dir=\"$WAM_DATA_PATH\" \
+ --user-data-dir=$WAM_DATA_PATH \
--use-gl=egl \
--enable-features=UseOzonePlatform \
--ozone-platform=wayland \
diff --git a/recipes-wam/wam/files/WebAppMgr.service b/recipes-wam/wam/files/WebAppMgr.service
index ed15040fb..5f025a18e 100644
--- a/recipes-wam/wam/files/WebAppMgr.service
+++ b/recipes-wam/wam/files/WebAppMgr.service
@@ -12,12 +12,14 @@
[Unit]
Description="WebAppMgr is responsible for running web apps and manage their lifecycle"
-After=agl-compositor.service
-Requires=agl-compositor.service
+After=agl-compositor.service nss-agl-driver-db.service
+Requires=agl-compositor.service nss-agl-driver-db.service
Before=graphical.target
BindTo=agl-compositor.service
[Service]
+User=agl-driver
+WorkingDirectory=/home/agl-driver
Type=simple
UMask=0077
OOMScoreAdjust=-1000