THEZYZSTUDIO commited on
Commit
096b4a3
Β·
verified Β·
1 Parent(s): 0cf901b

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +7 -1
start.sh CHANGED
@@ -27,7 +27,13 @@ firefox --no-sandbox --display=:1 &>/dev/null &
27
  echo "βœ… Firefox launched"
28
  sleep 2
29
 
30
- # ── 5. Start Python WebSocket API Server ─────────────
 
 
 
 
 
 
31
  echo "πŸš€ Starting Python API on port ${PORT:-7860}..."
32
  cd /app
33
  exec python3 app.py
 
27
  echo "βœ… Firefox launched"
28
  sleep 2
29
 
30
+ # ── 5. Create Xauthority file (required by pyautogui/Xlib) ──
31
+ export XAUTHORITY=/home/zai/.Xauthority
32
+ touch $XAUTHORITY
33
+ xauth generate :1 . trusted 2>/dev/null || true
34
+ echo "βœ… Xauthority ready"
35
+
36
+ # ── 6. Start Python WebSocket API Server ─────────────
37
  echo "πŸš€ Starting Python API on port ${PORT:-7860}..."
38
  cd /app
39
  exec python3 app.py