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)