Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Doc/library/webbrowser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ for the controller classes, all defined in this module.
+------------------------+-----------------------------------------+-------+
| ``'w3m'`` | :class:`GenericBrowser('w3m')` | |
+------------------------+-----------------------------------------+-------+
| ``'browsh'`` | :class:`GenericBrowser('browsh')` | |
+------------------------+-----------------------------------------+-------+
| ``'windows-default'`` | :class:`WindowsDefault` | \(2) |
+------------------------+-----------------------------------------+-------+
| ``'macosx'`` | :class:`MacOSX('default')` | \(3) |
Expand Down
3 changes: 3 additions & 0 deletions Lib/webbrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,9 @@ def register_standard_browsers():
# The w3m browser <http://w3m.sourceforge.net/>
if shutil.which("w3m"):
register("w3m", None, GenericBrowser("w3m"))
# The browsh browser <https://www.brow.sh/>
if shutil.which("browsh") and shutil.which("firefox"):
register("browsh", None, GenericBrowser(["browsh", "--startup-url", "%s"]))

# OK, now that we know what the default preference orders for each
# platform are, allow user to override them with the BROWSER variable.
Expand Down