]> granicus.if.org Git - python/commitdiff
Bug #1565661: in webbrowser, split() the command for the default
authorGeorg Brandl <georg@python.org>
Sat, 30 Sep 2006 07:32:00 +0000 (07:32 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 30 Sep 2006 07:32:00 +0000 (07:32 +0000)
GNOME browser in case it is a command with args.
 (backport from rev. 52056)

Lib/webbrowser.py
Misc/NEWS

index 7b0f7367dbf09bb512621c94d57005151c96a657..37355877c8898e6e57be4cfdf06425935f654fc3 100644 (file)
@@ -447,7 +447,7 @@ def register_X_browsers():
 
         # if successful, register it
         if retncode is None and commd:
-            register("gnome", None, BackgroundBrowser(commd))
+            register("gnome", None, BackgroundBrowser(commd.split()))
 
     # First, the Mozilla/Netscape browsers
     for browser in ("mozilla-firefox", "firefox",
index fd22c7ed4f87a37fdc3bfbfb937a012c3bedba9d..2e7955154f22e00ff974b3b3700ce489df5e9c6a 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -34,6 +34,9 @@ Extension Modules
 Library
 -------
 
+- Bug #1565661: in webbrowser, split() the command for the default
+  GNOME browser in case it is a command with args.
+
 - Fix a bug in traceback.format_exception_only() that led to an error
   being raised when print_exc() was called without an exception set.
   In version 2.4, this printed "None", restored that behavior.