diff --git a/xpra-run.sh b/xpra-run.sh index e3dd1ba..4c6e383 100755 --- a/xpra-run.sh +++ b/xpra-run.sh @@ -3,10 +3,12 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" #ARGS=("--lua=$SCRIPT_DIR/neat-donk.lua") ARGS=() PORT=5309 +( + while ! nc -z localhost $PORT ; do + sleep 0.1 + done + xdg-open http://127.0.0.1:$PORT +) & xpra start --bind-tcp=127.0.0.1:$PORT --html=on \ --start-child="/etc/alternatives/x-terminal-emulator -e 'lsnes ${ARGS[*]}'" \ --exit-with-child=yes --start-new-commands=no --daemon=no -while ! nc -z localhost $PORT ; do - sleep 0.1 -done -xdg-open http://127.0.0.1:$PORT