This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: webbrowser on gnome runs wrong browser
Type: Stage:
Components: Library (Lib) Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, kangabroo
Priority: normal Keywords:

Created on 2006-09-26 11:33 by kangabroo, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg30003 - (view) Author: Bruce Horn (kangabroo) Date: 2006-09-26 11:33
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.


msg30004 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-09-30 07:32
Logged In: YES 
user_id=849994

Thanks for the report, fixed in rev. 52056, 52057 (2.5).
History
Date User Action Args
2022-04-11 14:56:20adminsetgithub: 44032
2006-09-26 11:33:20kangabroocreate