ENH: Change permission for getdisplay.sh to make the runtimescript work
This commit is contained in:
parent
de5540f7e5
commit
f015e1ff03
|
@ -22,12 +22,17 @@ else
|
||||||
echo \$DISPLAY > "$TMP/display"
|
echo \$DISPLAY > "$TMP/display"
|
||||||
fi
|
fi
|
||||||
__END_OF_GETDISPLAY_SCRIPT__
|
__END_OF_GETDISPLAY_SCRIPT__
|
||||||
|
chmod +x "$TMP/getdisplay.sh"
|
||||||
rm -f $TMP/display
|
rm -f $TMP/display
|
||||||
open-x11 $TMP/getdisplay.sh || \
|
open-x11 $TMP/getdisplay.sh || \
|
||||||
open -a XDarwin $TMP/getdisplay.sh || \
|
open -a XDarwin $TMP/getdisplay.sh || \
|
||||||
echo ":0" > $TMP/display
|
echo ":0" > $TMP/display
|
||||||
|
|
||||||
while [ "$?" == "0" -a ! -f $TMP/display ]; do sleep 1; done
|
while [ "$?" == "0" -a ! -f $TMP/display ];
|
||||||
|
do
|
||||||
|
#echo "Waiting for display $TMP/display"
|
||||||
|
sleep 1;
|
||||||
|
done
|
||||||
export "DISPLAY=`cat $TMP/display`"
|
export "DISPLAY=`cat $TMP/display`"
|
||||||
|
|
||||||
ps -wx -ocommand | grep -e '[X]11' > /dev/null || exit 11
|
ps -wx -ocommand | grep -e '[X]11' > /dev/null || exit 11
|
||||||
|
|
Loading…
Reference in New Issue