@@ -542,11 +542,15 @@ def register_standard_browsers():
542
542
# First try to use the default Windows browser
543
543
register ("windows-default" , WindowsDefault )
544
544
545
- # Detect some common Windows browsers, fallback to IE
546
- iexplore = os .path .join (os .environ .get ("PROGRAMFILES" , "C:\\ Program Files" ),
547
- "Internet Explorer\\ IEXPLORE.EXE" )
545
+ # Detect some common Windows browsers, fallback to Microsoft Edge
546
+ # location in 64-bit Windows
547
+ edge64 = os .path .join (os .environ .get ("PROGRAMFILES(x86)" , "C:\\ Program Files (x86)" ),
548
+ "Microsoft\\ Edge\\ Application\\ msedge.exe" )
549
+ # location in 32-bit Windows
550
+ edge32 = os .path .join (os .environ .get ("PROGRAMFILES" , "C:\\ Program Files" ),
551
+ "Microsoft\\ Edge\\ Application\\ msedge.exe" )
548
552
for browser in ("firefox" , "firebird" , "seamonkey" , "mozilla" ,
549
- "netscape " , "opera" , iexplore ):
553
+ "opera " , edge64 , edge32 ):
550
554
if shutil .which (browser ):
551
555
register (browser , None , BackgroundBrowser (browser ))
552
556
else :
0 commit comments