summaryrefslogtreecommitdiffstats
path: root/Lib/webbrowser.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2004-07-10 22:07:02 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2004-07-10 22:07:02 (GMT)
commit9a2a1cb031f9149ca6bfaf7b43ae0955d16db9b1 (patch)
tree6d61b7d079ea7e5a2c85ab680202ab36f9ced046 /Lib/webbrowser.py
parent864bba1981cbb3284b43cf19a40f909296323d02 (diff)
downloadcpython-9a2a1cb031f9149ca6bfaf7b43ae0955d16db9b1.zip
cpython-9a2a1cb031f9149ca6bfaf7b43ae0955d16db9b1.tar.gz
cpython-9a2a1cb031f9149ca6bfaf7b43ae0955d16db9b1.tar.bz2
[Patch #981794] Add support for Firefox/Firebird
Diffstat (limited to 'Lib/webbrowser.py')
-rw-r--r--Lib/webbrowser.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py
index f8b41e5..4750fe2 100644
--- a/Lib/webbrowser.py
+++ b/Lib/webbrowser.py
@@ -277,14 +277,15 @@ if os.environ.get("TERM") or os.environ.get("DISPLAY"):
# X browsers have more in the way of options
if os.environ.get("DISPLAY"):
- _tryorder = ["galeon", "skipstone", "mozilla", "netscape",
+ _tryorder = ["galeon", "skipstone",
+ "mozilla-firefox", "mozilla-firebird", "mozilla", "netscape",
"kfm", "grail"] + _tryorder
# First, the Netscape series
- if _iscommand("mozilla"):
- register("mozilla", None, Netscape("mozilla"))
- if _iscommand("netscape"):
- register("netscape", None, Netscape("netscape"))
+ for browser in ("mozilla-firefox", "mozilla-firebird",
+ "mozilla", "netscape"):
+ if _iscommand(browser):
+ register(browser, None, Netscape(browser))
# Next, Mosaic -- old but still in use.
if _iscommand("mosaic"):