Skip to content

Commit

Permalink
fix: add new arg to prevent outdated/upgrade popups, #16
Browse files Browse the repository at this point in the history
  • Loading branch information
foxxyz committed Oct 27, 2023
1 parent 45594c2 commit 58f129b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions systems/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 58f129b

Please sign in to comment.