Bug 173275 - Outdated/inconsistent browser list in webbrowser.py
Summary: Outdated/inconsistent browser list in webbrowser.py
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python
Version: rawhide
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Mihai Ibanescu
QA Contact: Brock Organ
URL:
Whiteboard:
: 179837 196346 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-11-15 20:46 UTC by Ville Skyttä
Modified: 2007-11-30 22:11 UTC (History)
4 users (show)

Fixed In Version: 2.4.3-7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-06-26 14:12:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Try to prefer user's config, recognize current firefox (1018 bytes, patch)
2005-11-17 17:50 UTC, Ville Skyttä
no flags Details | Diff

Description Ville Skyttä 2005-11-15 20:46:11 UTC
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.

Comment 1 Mihai Ibanescu 2005-11-17 14:26:26 UTC
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?

Comment 2 Ville Skyttä 2005-11-17 17:50:58 UTC
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.

Comment 3 Paul Howarth 2006-02-09 14:23:01 UTC
I suspect that Bug 179837 is a duplicate of this. Anyone care to comment? If
agreed, I'll close that one as a dupe.

Comment 4 Paul Howarth 2006-03-01 08:53:08 UTC
*** Bug 179837 has been marked as a duplicate of this bug. ***

Comment 5 Paul Howarth 2006-06-26 14:12:40 UTC
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


Comment 6 Fedora Update System 2006-06-26 19:31:37 UTC
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.

Comment 7 Paul Howarth 2006-08-10 17:12:41 UTC
*** Bug 196346 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.