[ python-Bugs-1565661 ] webbrowser on gnome runs wrong browser
SourceForge.net
noreply at sourceforge.net
Tue Sep 26 13:33:20 CEST 2006
Bugs item #1565661, was opened at 2006-09-26 11:33
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1565661&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: kangabroo (kangabroo)
Assigned to: Nobody/Anonymous (nobody)
Summary: webbrowser on gnome runs wrong browser
Initial Comment:
Epiphany is set as system default, but Firefox runs
when webbrowser.open is called.
in webbrowser.py - register_X_browsers():
'gconftool-2 -g
/desktop/gnome/url-handlers/http/command 2>/dev/null'
returns 'epiphany %s'
A BackgroundBrowser with a name of 'epiphany %s' is
created.
later on open(),
subprocess.Popen(['epiphany %s', url], ....) is called.
This throws an exception:
OSError: [Errno 2] No such file or directory
which is caught, and False is returned
Solution:
in webbrowser.py function register_X_browsers(), change:
register("gnome", None, BackgroundBrowser(commd))
to
register("gnome", None, BackgroundBrowser(commd.split()))
System: Python 2.5, Linux 2.6.17, Gnome 2.14.2.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1565661&group_id=5470
More information about the Python-bugs-list
mailing list