v0.07: switch to Chromium snap, remove Google Chrome

- Replace google-chrome with /snap/bin/chromium
- Remove --test-type flag (was triggering Google bot detection/CAPTCHA)
- Add --disable-blink-features=AutomationControlled (hides webdriver flag)
- Move profile dir to /home/jgitta/chromium-kiosk (snap can't write to .config)
- Uninstall google-chrome-stable and its apt repo
This commit is contained in:
2026-05-22 12:28:48 +00:00
parent e574403853
commit aac4605e66
+4 -4
View File
@@ -561,7 +561,7 @@ class KioskOverlay(QWidget):
# ── Chrome launcher ─────────────────────────────────────────────── # ── Chrome launcher ───────────────────────────────────────────────
def launch_chrome(): def launch_chrome():
import pathlib, json as _json, shutil import pathlib, json as _json, shutil
profile_dir = pathlib.Path("/home/jgitta/.config/google-chrome-kiosk") profile_dir = pathlib.Path("/home/jgitta/chromium-kiosk")
profile_dir.mkdir(parents=True, exist_ok=True) profile_dir.mkdir(parents=True, exist_ok=True)
for name in ("SingletonLock", "SingletonSocket", "SingletonCookie"): for name in ("SingletonLock", "SingletonSocket", "SingletonCookie"):
@@ -606,7 +606,7 @@ def launch_chrome():
chrome_h = SCREEN_H - TOP_H chrome_h = SCREEN_H - TOP_H
cmd = [ cmd = [
"google-chrome", "chromium",
"--no-first-run", "--no-first-run",
"--no-default-browser-check", "--no-default-browser-check",
"--disable-translate", "--disable-translate",
@@ -623,9 +623,9 @@ def launch_chrome():
"--disable-extensions", "--disable-extensions",
"--disable-gpu", "--disable-gpu",
"--no-sandbox", "--no-sandbox",
"--test-type", "--disable-blink-features=AutomationControlled",
"--disable-dev-shm-usage", "--disable-dev-shm-usage",
"--user-data-dir=/home/jgitta/.config/google-chrome-kiosk", "--user-data-dir=/home/jgitta/chromium-kiosk",
f"--remote-debugging-port={CDP_PORT}", f"--remote-debugging-port={CDP_PORT}",
"--remote-allow-origins=*", "--remote-allow-origins=*",
f"--window-position=0,{TOP_H}", f"--window-position=0,{TOP_H}",