Spaces:
Paused
Paused
Update start.sh
Browse files
start.sh
CHANGED
|
@@ -27,7 +27,13 @@ firefox --no-sandbox --display=:1 &>/dev/null &
|
|
| 27 |
echo "β
Firefox launched"
|
| 28 |
sleep 2
|
| 29 |
|
| 30 |
-
# ββ 5.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|