X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=recipes-demo%2Fhtml5-homescreen%2Ffiles%2Fhomescreen.service;h=b8d34caa99fe15f20b6f7f6aea52fd0977c82651;hb=a2f890dae4d3b9d49d2921576b04384cef7641d3;hp=20ed2ee13fd6d10d887209fc45f6f8f892be7bf0;hpb=54346ef22702aa41531aaa0e6f662cc91fce4905;p=AGL%2Fmeta-agl-demo.git diff --git a/recipes-demo/html5-homescreen/files/homescreen.service b/recipes-demo/html5-homescreen/files/homescreen.service index 20ed2ee13..b8d34caa9 100644 --- a/recipes-demo/html5-homescreen/files/homescreen.service +++ b/recipes-demo/html5-homescreen/files/homescreen.service @@ -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