From 58f129bad15034dfba60a10e0edc7e8ed1659c46 Mon Sep 17 00:00:00 2001 From: Ivo Janssen Date: Thu, 26 Oct 2023 17:45:37 -0700 Subject: [PATCH] fix: add new arg to prevent outdated/upgrade popups, #16 --- systems/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/systems/__init__.py b/systems/__init__.py index 971a18f..4556e0b 100755 --- a/systems/__init__.py +++ b/systems/__init__.py @@ -29,13 +29,22 @@ def open_browser(self, url, display, flags=[]): args = [ self.browser_path, + # Disable "what's new" and "welcome" modals '--no-first-run', + # Disable native pinch gestures '--disable-pinch', + # Use basic password store so keyring access is not necessary '--password-store=basic', + # Create a new profile so instances are not opened in the same window '--user-data-dir={}'.format(user_dir), + # Spawn in correct location '--window-size={},{}'.format(display['width'], display['height']), '--window-position={},{}'.format(display['x'], display['y']), + # Full-screen with no access to windowed mode or dev tools '--kiosk', + # Prevent "Chrome is outdated" pop-up + '--simulate-outdated-no-au="01 Jan 2199"', + # Use application mode '--app={}'.format(url), ] + flags Popen(args, stdout=DEVNULL, stderr=DEVNULL)