From aac4605e66dec064eb93c9288ec91cc61cc1cbb9 Mon Sep 17 00:00:00 2001 From: jgitta Date: Fri, 22 May 2026 12:28:48 +0000 Subject: [PATCH] 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 --- browser.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/browser.py b/browser.py index 164edb0..fb3d0b7 100755 --- a/browser.py +++ b/browser.py @@ -561,7 +561,7 @@ class KioskOverlay(QWidget): # ── Chrome launcher ─────────────────────────────────────────────── def launch_chrome(): 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) for name in ("SingletonLock", "SingletonSocket", "SingletonCookie"): @@ -606,7 +606,7 @@ def launch_chrome(): chrome_h = SCREEN_H - TOP_H cmd = [ - "google-chrome", + "chromium", "--no-first-run", "--no-default-browser-check", "--disable-translate", @@ -623,9 +623,9 @@ def launch_chrome(): "--disable-extensions", "--disable-gpu", "--no-sandbox", - "--test-type", + "--disable-blink-features=AutomationControlled", "--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}", "--remote-allow-origins=*", f"--window-position=0,{TOP_H}",