From bbcb2814f2745ddd652480c3a932911680881544 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 30 Sep 2006 07:32:00 +0000 Subject: [PATCH] Bug #1565661: in webbrowser, split() the command for the default GNOME browser in case it is a command with args. (backport from rev. 52056) --- Lib/webbrowser.py | 2 +- Misc/NEWS | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index 7b0f7367db..37355877c8 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 fd22c7ed4f..2e7955154f 100644 --- 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. -- 2.50.1