#! /bin/sh

DPYNUM=`echo ${DISPLAY:-:0} | cut -f2 -d: | cut -f1 -d.`
until [ -S /tmp/.X11-unix/X$DPYNUM ]; do
    sleep 1
done

exec "$@"
