Run the check for Xpra in the background
This commit is contained in:
parent
478fa59509
commit
b5f3084ddc
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||||
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
|
while ! nc -z localhost $PORT ; do
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
done
|
done
|
||||||
xdg-open http://127.0.0.1:$PORT
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue