Run the check for Xpra in the background

This commit is contained in:
Empathic Qubit 2021-05-01 22:16:45 -04:00
parent 478fa59509
commit b5f3084ddc

View file

@ -3,10 +3,12 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
#ARGS=("--lua=$SCRIPT_DIR/neat-donk.lua") #ARGS=("--lua=$SCRIPT_DIR/neat-donk.lua")
ARGS=() ARGS=()
PORT=5309 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 \ xpra start --bind-tcp=127.0.0.1:$PORT --html=on \
--start-child="/etc/alternatives/x-terminal-emulator -e 'lsnes ${ARGS[*]}'" \ --start-child="/etc/alternatives/x-terminal-emulator -e 'lsnes ${ARGS[*]}'" \
--exit-with-child=yes --start-new-commands=no --daemon=no --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