(browser)
| 1322 | |
| 1323 | |
| 1324 | def browser_display_name(browser): |
| 1325 | b = browser.lower() |
| 1326 | if 'iexplore' in b: |
| 1327 | return 'Microsoft Internet Explorer' |
| 1328 | if 'chrome' in b: |
| 1329 | return 'Google Chrome' |
| 1330 | if 'firefox' in b: |
| 1331 | # Try to identify firefox flavor explicitly, to help show issues where emrun would launch the wrong browser. |
| 1332 | try: |
| 1333 | product_name = win_get_file_properties(browser)['StringFileInfo']['ProductName'] if WINDOWS else 'firefox' |
| 1334 | if product_name.lower() != 'firefox': |
| 1335 | return 'Mozilla Firefox ' + product_name |
| 1336 | except Exception: |
| 1337 | pass |
| 1338 | return 'Mozilla Firefox' |
| 1339 | if 'opera' in b: |
| 1340 | return 'Opera' |
| 1341 | if 'safari' in b: |
| 1342 | return 'Apple Safari' |
| 1343 | return browser |
| 1344 | |
| 1345 | |
| 1346 | def subprocess_env(): |
no test coverage detected