Change-Id: If0128ac1b1ec533d7112692f5ce1a35da3099392
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
# 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