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 Unix" section). 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: http://svn.python.org/view/python/trunk/Lib/webbrowser.py?rev=41419&view=auto However, it's not quite there IMO, so I reported this: https://sourceforge.net/tracker/index.php?func=detail&aid=1359150&group_id=5470&atid=105470 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 misa 2006-06-12 15:45 EST ------- Ville, 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 ville.skytta 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 misa 2006-06-12 18:06 EST ------- Fair enough - I was only looking at http://svn.python.org/view/python/trunk/Lib/webbrowser.py?p2=%2Fpython%2Ftrunk%2FLib%2Fwebbrowser.py&p1=python%2Ftrunk%2FLib%2Fwebbrowser.py&r1=41511&r2=41510&rev=41511&view=diff&makepatch=1&diff_format=u ------- Additional Comments From misa 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. ***