#!/bin/bash CHROME_BIN=$(find ~/.cache/ms-playwright -type f -name "chrome" -path "*chrome-linux*" 2>/dev/null | head -1) if [ -z "$CHROME_BIN" ]; then echo "ERROR: could not find Playwright's chrome binary under ~/.cache/ms-playwright" exit 1 fi echo "Using Chrome binary: $CHROME_BIN" exec "$CHROME_BIN" \ --headless=new \ --remote-debugging-port=9222 \ --remote-debugging-address=0.0.0.0 \ --no-sandbox \ --disable-dev-shm-usage \ --disable-gpu