]> granicus.if.org Git - python/commitdiff
[Patch #981794] Add support for Firefox/Firebird
authorAndrew M. Kuchling <amk@amk.ca>
Sat, 10 Jul 2004 22:07:02 +0000 (22:07 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Sat, 10 Jul 2004 22:07:02 +0000 (22:07 +0000)
Lib/webbrowser.py

index f8b41e537c4acb54104a64ed629a46d3e0518ff5..4750fe25cd275deea944123845a7c90fd2905b07 100644 (file)
@@ -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"):