LNXCORE/Kinc/Tools/freebsd_x64/freebsd-xvfb-run

17 lines
202 B
Plaintext
Raw Normal View History

2025-01-29 10:55:49 +01:00
#!/bin/sh
export PATH='/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin'
i=0
while [ -f /tmp/.X$i-lock ]; do
i=$(($i + 1))
done
Xvfb :$i &
XVFBPID=$!
env DISPLAY=:$i $@
kill $XVFBPID
exit 0