[wam][cef] Fix wam user and working directory 67/29067/2
authorRoger Zanoni <rzanoni@igalia.com>
Mon, 31 Jul 2023 08:40:07 +0000 (10:40 +0200)
committerRoger Zanoni <rzanoni@igalia.com>
Mon, 31 Jul 2023 16:31:10 +0000 (18:31 +0200)
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

recipes-wam/wam/files/WebAppMgr.env
recipes-wam/wam/files/WebAppMgr.service

index 7737d78..f1d0f28 100644 (file)
@@ -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 \
index ed15040..5f025a1 100644 (file)
 
 [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