Download tasks/t24-friction-pong/tests/native/runtime-launch.sh from refreshdotdev/Refresh-GUI-dataset: direct link, hf CLI and curl.
- Browser
- Download file 870 Bytes
-
https://huggingface.co/datasets/refreshdotdev/Refresh-GUI-dataset/resolve/main/tasks/t24-friction-pong/tests/native/runtime-launch.sh
- Command line
-
hf download hf://datasets/refreshdotdev/Refresh-GUI-dataset/tasks/t24-friction-pong/tests/native/runtime-launch.sh
-
curl -L -o runtime-launch.sh https://huggingface.co/datasets/refreshdotdev/Refresh-GUI-dataset/resolve/main/tasks/t24-friction-pong/tests/native/runtime-launch.sh
870 Bytes
| set -eu | |
| export FRICTION_AUDIT_MODE=1 | |
| export LD_LIBRARY_PATH=/opt/friction/lib | |
| export QT_QPA_PLATFORM=xcb | |
| export QT_PLUGIN_PATH=/opt/friction/plugins | |
| export LIBGL_ALWAYS_SOFTWARE=1 | |
| export XDG_RUNTIME_DIR=/tmp/xdg-friction-audit | |
| export DISPLAY=:99 | |
| mkdir -p "$XDG_RUNTIME_DIR" /root/.config /root/.cache | |
| chmod 700 "$XDG_RUNTIME_DIR" | |
| # A private container has no other display clients; bind only its local socket. | |
| # Avoid xvfb-run's parent USR1 readiness handshake when the shell is PID1. | |
| Xvfb "$DISPLAY" -screen 0 1920x1080x24 -nolisten tcp -ac >/tmp/xvfb-audit.log 2>&1 & | |
| TASK_XVFB_PID=$! | |
| trap 'kill "$TASK_XVFB_PID" 2>/dev/null || true' EXIT INT TERM | |
| TASK_READY=0 | |
| while [ ! -S /tmp/.X11-unix/X99 ]; do | |
| TASK_READY=$((TASK_READY+1)) | |
| if [ "$TASK_READY" -gt 50 ]; then cat /tmp/xvfb-audit.log >&2; exit 5; fi | |
| sleep 0.1 | |
| done | |
| /opt/friction-audit/bin/friction "$@" | |