Skip to content

Commit

Permalink
Added Edgium aliases for the Chromium-based Edge browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Meenan committed Jan 15, 2020
1 parent bb0c208 commit 7426b7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wptagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,11 +633,17 @@ def find_browsers():
browser_name = 'Microsoft {0} (Chromium)'.format(channel)
if browser_name not in browsers:
browsers[browser_name] = {'exe': edge_path}
if channel == 'Edge' and 'Edgium' not in browsers:
browsers['Edgium'] = {'exe': edge_path}
elif channel == 'Edge Dev' and 'Edgium Dev' not in browsers:
browsers['Edgium Dev'] = {'exe': edge_path}
if local_appdata is not None and 'Microsoft Edge Canary (Chromium)' not in browsers:
edge_path = os.path.join(local_appdata, 'Microsoft', 'Edge SxS',
'Application', 'msedge.exe')
if os.path.isfile(edge_path):
browsers['Microsoft Edge Canary (Chromium)'] = {'exe': edge_path}
if 'Edgium Canary' not in browsers:
browsers['Edgium Canary'] = {'exe': edge_path}
# Internet Explorer
paths = [program_files, program_files_x86]
for path in paths:
Expand Down

0 comments on commit 7426b7c

Please sign in to comment.