Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37593429
en ru br
ALT Linux repos
S:2.7.18-alt11
5.0: 2.5.4-alt5
4.1: 2.5.4-alt0.M41.1
4.0: 2.4.5-alt0.M40.1
3.0: 2.4.1-alt5

Group :: Development/Python
RPM: python

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: python-2.4-alt-webbrowser.patch
Download


--- Lib/webbrowser.py~	2005-09-15 10:29:38.000000000 +0300
+++ Lib/webbrowser.py	2005-11-17 19:48:20.000000000 +0200
@@ -277,12 +277,17 @@
 
     # X browsers have more in the way of options
     if os.environ.get("DISPLAY"):
-        _tryorder = ["galeon", "skipstone",
+        _tryorder = ["htmlview", "firefox", "galeon", "skipstone", "seamonkey",
                      "mozilla-firefox", "mozilla-firebird", "mozilla", "netscape",
                      "kfm", "grail"] + _tryorder
 
+        # Try htmlview (in order to honor user config) before anything else.
+        if _iscommand("htmlview"):
+            register("htmlview", None, GenericBrowser(
+                "htmlview '%s' >/dev/null &"))
+
         # First, the Netscape series
-        for browser in ("mozilla-firefox", "mozilla-firebird",
+        for browser in ("firefox", "mozilla-firefox", "mozilla-firebird", "seamonkey",
                         "mozilla", "netscape"):
             if _iscommand(browser):
                 register(browser, None, Netscape(browser))
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin