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
10
xpra-run.sh
10
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
|
||||
|
|
Loading…
Add table
Reference in a new issue