neat-donk/xpra-run.sh

13 lines
374 B
Bash
Raw Normal View History

2021-04-09 15:06:55 -04:00
#! /bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
2021-04-24 06:00:28 -04:00
#ARGS=("--lua=$SCRIPT_DIR/neat-donk.lua")
ARGS=()
PORT=5309
2021-04-24 06:00:28 -04:00
xpra start --bind-tcp=127.0.0.1:$PORT --html=on \
--start-child="lsnes ${ARGS[*]}" \
--exit-with-child=yes --start-new-commands=no
while ! nc -z localhost $PORT ; do
sleep 0.1
done
xdg-open http://127.0.0.1:$PORT