[New-bugs-announce] [issue24452] Make webbrowser support Chrome on Mac OS/X
Ned Batchelder
report at bugs.python.org
Sun Jun 14 23:33:25 CEST 2015
New submission from Ned Batchelder:
This doesn't work on Python 3.4 on a Mac with Yosemite and Chrome installed:
import webbrowser
webbrowser.get("chrome")
This patch makes it work:
```
*** /usr/local/pythonz/pythons/CPython-3.4.1/lib/python3.4/webbrowser.py 2014-09-21 16:37:46.000000000 -0400
--- /Users/ned/foo/webbrowser.py 2015-06-14 17:31:28.000000000 -0400
***************
*** 605,614 ****
--- 605,615 ----
# Don't clear _tryorder or _browsers since OS X can use above Unix support
# (but we prefer using the OS X specific stuff)
register("safari", None, MacOSXOSAScript('safari'), -1)
register("firefox", None, MacOSXOSAScript('firefox'), -1)
+ register("chrome", None, MacOSXOSAScript('chrome'), -1)
register("MacOSX", None, MacOSXOSAScript('default'), -1)
# OK, now that we know what the default preference orders for each
# platform are, allow user to override them with the BROWSER variable.
```
----------
components: Library (Lib)
messages: 245351
nosy: nedbat
priority: normal
severity: normal
status: open
title: Make webbrowser support Chrome on Mac OS/X
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24452>
_______________________________________
More information about the New-bugs-announce
mailing list