summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-09-30 07:31:57 (GMT)
committerGeorg Brandl <georg@python.org>2006-09-30 07:31:57 (GMT)
commit8c6674511b7fd0cafcdf00011eb91c3216be094f (patch)
treeaeea2f22104296c1cc51540acc980d1e83e3f821
parent21d994390cc67769525962849e10a085be6d4734 (diff)
downloadcpython-8c6674511b7fd0cafcdf00011eb91c3216be094f.zip
cpython-8c6674511b7fd0cafcdf00011eb91c3216be094f.tar.gz
cpython-8c6674511b7fd0cafcdf00011eb91c3216be094f.tar.bz2
Bug #1565661: in webbrowser, split() the command for the default
GNOME browser in case it is a command with args.
-rw-r--r--Lib/webbrowser.py2
-rw-r--r--Misc/NEWS3
2 files changed, 4 insertions, 1 deletions
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py
index 7b0f736..3735587 100644
--- a/Lib/webbrowser.py
+++ b/Lib/webbrowser.py
@@ -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",
diff --git a/Misc/NEWS b/Misc/NEWS
index ddf993f..b28eac6 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -56,6 +56,9 @@ Core and builtins
Library
-------
+- Bug #1565661: in webbrowser, split() the command for the default
+ GNOME browser in case it is a command with args.
+
- Made the error message for time.strptime when the data data and format do
match be more clear.