[Python-checkins] commit of r41511 - python/trunk/Lib

reinhold.birkenfeld@python.org reinhold.birkenfeld at python.org
Tue Nov 22 20:18:06 CET 2005


Author: reinhold.birkenfeld
Date: Tue Nov 22 20:18:01 2005
New Revision: 41511
Modified:
 python/trunk/Lib/webbrowser.py
Log:
Prefer GNOME browser over mozilla.
Modified: python/trunk/Lib/webbrowser.py
==============================================================================
--- python/trunk/Lib/webbrowser.py	(original)
+++ python/trunk/Lib/webbrowser.py	Tue Nov 22 20:18:01 2005
@@ -344,13 +344,6 @@
 # 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 @@
 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"))


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /