youtube-trusted-session-gen.../docker/scripts/startup.sh

15 lines
333 B
Bash
Raw Permalink Normal View History

2024-07-20 10:42:31 +02:00
#!/bin/sh
echo "[INFO] internally launching GUI (X11 environment)"
2024-07-20 10:42:31 +02:00
XVFB_WHD=${XVFB_WHD:-1280x720x16}
2024-07-20 10:42:31 +02:00
echo "[INFO] starting Xvfb"
2024-09-18 20:58:29 +02:00
Xvfb :99 -ac -screen 0 $XVFB_WHD -nolisten tcp > /dev/null 2>&1 &
sleep 2
2024-07-20 10:42:31 +02:00
echo "[INFO] launching chromium instance"
2024-07-20 10:42:31 +02:00
2024-11-17 15:52:07 +01:00
# Run python script on display 0
DISPLAY=:99 python potoken-generator.py --oneshot