Updated packaging change log.
[profile/ivi/weston.git] / packaging / rc.weston
index 5b86cc5..c769bc1 100644 (file)
@@ -92,7 +92,15 @@ do_start()
        # appropriate --user flag.  Unfortunately, weston-launch isn't
        # available due to missing package dependencies.
        # ************************************************************
-       chmod 777 $XDG_RUNTIME_DIR/wayland-0
+       wayland_socket="$XDG_RUNTIME_DIR/wayland-0"
+       MAX_ATTEMPTS=8
+       attempt=0
+       while [ ! -f $wayland_socket ] && [ $attempt -lt $MAX_ATTEMPTS ]
+       do
+               sleep 0.5
+               attempt=$[$attempt + 1]
+       done
+       chmod 777 $wayland_socket
 
        # ***********************************************************
        # HACK TO WORK AROUND BROKEN INFINITE LOOPS IN BOOT ANIMATION