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:
+4
-4
@@ -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}",
|
||||
|
||||
Reference in New Issue
Block a user