Red Hat Bugzilla – Bug 173275
Outdated/inconsistent browser list in webbrowser.py
Last modified: 2007-11-30 17:11:17 EST
The default web browser list in /usr/lib/python2.4/webbrowser.py seems
outdated, and doesn't honor the system defaults (see the "Platform support for
In particular, it doesn't try Firefox by it's name "firefox" (but uses some
old variants), and tries "kfm" which should nowadays be "konqueror". Also, it
doesn't even try "gnome-open" or "htmlview", making it not support the user's
configured default browser like most of the rest of the system does.
Ville, can you please file a bug to the upstream python developers? I am usually
trying to do that myself for some bugzilla requests that are of high importance,
but it's fairly difficult to advocate for something I don't use - maybe you can
explain what your requirements are and possibly suggest a patch?
Created attachment 121198 [details]
Try to prefer user's config, recognize current firefox
I checked upstream, and this appears to be pretty well addressd in svn trunk:
However, it's not quite there IMO, so I reported this:
Finally, attached is a (untested) patch against Python 2.4.2 which I think
would cover the issue sufficiently well in the FC python package until the next
major Python version containing the above better implementation is out. BTW,
it appears that the kfm/konqueror concern in the initial comment to this bug
was a false alarm.
I suspect that Bug 179837 is a duplicate of this. Anyone care to comment? If
agreed, I'll close that one as a dupe.
*** Bug 179837 has been marked as a duplicate of this bug. ***
Some changes to this bug were lost in the bugzilla crash. Here they are again:
------- Additional Comments From email@example.com 2006-06-12 15:45 EST -------
The patch you reference above does not apply cleanly on 2.4.3 - substantial work
has been done in HEAD to make it too risky to pull that version of webbrowser.py
into 2.4.3. Do you agree?
------ Additional Comments From firstname.lastname@example.org 2006-06-12 18:00 EST -------
I agree that pulling from HEAD would be a pretty courageous move, but note that
the patch in comment 2 (attachment 121198 [details]) still does apply cleanly to 2.4.3,
and my "Finally, ..." comment there still applies too, FWIW...
------- Additional Comments From email@example.com 2006-06-12 18:06 EST -------
Fair enough - I was only looking at
------- Additional Comments From firstname.lastname@example.org 2006-06-12 18:15 EST -------
Should be fixed in 2.4.3-7 and newer
python-2.4.3-8.FC4 has been pushed for fc4, which should resolve this issue. If these problems are still present in this version, then please make note of it in this bug report.
*** Bug 196346 has been marked as a duplicate of this bug. ***