[wam][cef] Start unsing the WebAppMgrCli wrapper
[AGL/meta-agl-demo.git] / recipes-demo / html5-homescreen / files / homescreen.service
index 20ed2ee..b8d34ca 100644 (file)
@@ -5,11 +5,12 @@ After=WebAppMgr.service dbus.service
 
 [Service]
 Type=simple
-Environment=AFM_ID=homescreen
-Environment=AFM_APP_INSTALL_DIR=/usr/lib/wam_apps/html5-homescreen/
-ExecStartPre=sleep 1
-ExecStart=/usr/bin/WebAppMgr
+User=agl-driver
+EnvironmentFile=-/etc/default/WebAppMgr.env
+Environment=XDG_RUNTIME_DIR=/run/user/1001/
+ExecStartPre=sleep 5
+ExecStart=/usr/bin/WebAppMgrCli --appid=homescreen --app-install-dir=/usr/lib/wam_apps/html5-homescreen/
 Restart=on-failure
 
 [Install]
-WantedBy=agl-session.target
+WantedBy=graphical.target