diff options
Diffstat (limited to 'recipes-openivi/openivi-html5/openivi-html5')
-rw-r--r-- | recipes-openivi/openivi-html5/openivi-html5/openivi-html5.service | 14 | ||||
-rw-r--r-- | recipes-openivi/openivi-html5/openivi-html5/openivi-html5.sh | 5 |
2 files changed, 9 insertions, 10 deletions
diff --git a/recipes-openivi/openivi-html5/openivi-html5/openivi-html5.service b/recipes-openivi/openivi-html5/openivi-html5/openivi-html5.service index df14ccb4a..2c8648475 100644 --- a/recipes-openivi/openivi-html5/openivi-html5/openivi-html5.service +++ b/recipes-openivi/openivi-html5/openivi-html5/openivi-html5.service @@ -1,14 +1,16 @@ [Unit] Description=HTML5 runtime for OpenIVI Mobility applications -Requires=dbus.service -After=dbus.service lightmediascanner.service rygel.service weston.service +Requires=afm-user-daemon.service InputEventManager.service +After=afm-user-daemon.service InputEventManager.service +ConditionKernelCommandLine=!agl.nogfx [Service] -User=root +Type=dbus +BusName=org.agl.openivi ExecStart=/usr/bin/openivi-html5.sh -Restart=always -RestartSec=2 +Restart=on-failure +RestartSec=5 TimeoutStopSec=1 [Install] -WantedBy=multi-user.target +WantedBy=default.target diff --git a/recipes-openivi/openivi-html5/openivi-html5/openivi-html5.sh b/recipes-openivi/openivi-html5/openivi-html5/openivi-html5.sh index 3a43b40d9..a318214ad 100644 --- a/recipes-openivi/openivi-html5/openivi-html5/openivi-html5.sh +++ b/recipes-openivi/openivi-html5/openivi-html5/openivi-html5.sh @@ -30,10 +30,7 @@ SCREEN_H=1920 QT_W=1080 QT_H=1920 -# Ensure that Weston has been fully loaded -sleep 8 - -/usr/bin/openivi-html5 -f -u $HOMESCREEN & +QT_IVI_SURFACE_ID=4194304 QT_WAYLAND_SHELL_INTEGRATION=ivi-shell /usr/bin/openivi-html5 -f -u $HOMESCREEN & # qmlscene create 2 surfaces # 0x80000000 : for off screen buffer ? |