summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-11-22 19:18:01 (GMT)
committerGeorg Brandl <georg@python.org>2005-11-22 19:18:01 (GMT)
commit4a5a91838b7318cc89a2ff2018b26940a5960a29 (patch)
tree2dbd234684666af039e9ab1173924f99cd44ae3b
parenta6ba60232abc614f5d7646fca723d81d5290a96f (diff)
downloadcpython-4a5a91838b7318cc89a2ff2018b26940a5960a29.zip
cpython-4a5a91838b7318cc89a2ff2018b26940a5960a29.tar.gz
cpython-4a5a91838b7318cc89a2ff2018b26940a5960a29.tar.bz2
Prefer GNOME browser over mozilla.
-rw-r--r--Lib/webbrowser.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py
index afc25ba..e21d182 100644
--- a/Lib/webbrowser.py
+++ b/Lib/webbrowser.py
@@ -344,13 +344,6 @@ class Grail(BaseBrowser):
# a console terminal or an X display to run.
def register_X_browsers():
- # First, the Mozilla/Netscape browsers
- for browser in ("mozilla-firefox", "firefox",
- "mozilla-firebird", "firebird",
- "mozilla", "netscape"):
- if _iscommand(browser):
- register(browser, None, Mozilla(browser))
-
# The default Gnome browser
if _iscommand("gconftool-2"):
# get the web browser string from gconftool
@@ -364,6 +357,13 @@ def register_X_browsers():
register("gnome", None, GenericBrowser(
commd + " '%s' >/dev/null &"))
+ # First, the Mozilla/Netscape browsers
+ for browser in ("mozilla-firefox", "firefox",
+ "mozilla-firebird", "firebird",
+ "mozilla", "netscape"):
+ if _iscommand(browser):
+ register(browser, None, Mozilla(browser))
+
# Konqueror/kfm, the KDE browser.
if _iscommand("kfm"):
register("kfm", Konqueror, Konqueror("kfm"))