This commit is contained in:
David Rice
2026-04-16 18:42:03 +01:00
parent 51182d55e0
commit 5bffbcac17
2 changed files with 18 additions and 0 deletions

15
display_start.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
set -e
DISPLAY_NUM=:0
VT=vt3
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
if pgrep -x Xorg > /dev/null; then
echo "Xorg already running"
else
sudo Xorg "$DISPLAY_NUM" "$VT" &
sleep 1
fi
DISPLAY="$DISPLAY_NUM" python3 "$SCRIPT_DIR/display.py" --fullscreen