2024-07-20 10:42:31 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-07-20 10:57:35 +02:00
|
|
|
echo "[INFO] internally launching GUI (X11 environment)"
|
2024-07-20 10:42:31 +02:00
|
|
|
|
2024-07-21 17:47:18 +02:00
|
|
|
XVFB_WHD=${XVFB_WHD:-1280x720x16}
|
2024-07-20 10:42:31 +02:00
|
|
|
|
2024-07-21 17:47:18 +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 &
|
2024-07-21 17:47:18 +02:00
|
|
|
sleep 2
|
2024-07-20 10:42:31 +02:00
|
|
|
|
2024-07-21 17:47:18 +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
|