mediaplayer: remove qtmultimedia dependencies from recipe
[AGL/meta-agl-demo.git] / recipes-openivi / openivi-html5 / openivi-html5 / openivi-html5.sh
index b622551..a318214 100644 (file)
@@ -17,7 +17,7 @@ HOMESCREEN=/usr/share/openivi/example/cluster/index.html
 HOMESCREEN_CONFIG=$XDG_CONFIG_DIRS/openivi-html5/openivi-html5.ini
 if [ -e "$HOMESCREEN_CONFIG" ] ; then
     HTML=`sed -n '/^homescreen=\(.*\)$/s//\1/p' <  $HOMESCREEN_CONFIG`
-    if [ -e "$HTML" ] ; then
+    if [ -n "$HTML" ] ; then
         HOMESCREEN=$HTML
     fi
 fi
@@ -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 ?