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.

Author elessar
Recipients elessar, gvanrossum
Date 2008-01-23.03:04:02
SpamBayes Score 0.019730529
Marked as misclassified No
Message-id <1201057445.76.0.125574722867.issue1911@psf.upfronthosting.co.za>
In-reply-to
Content
I'm running 2.6.23.9 linux kernel fedora 8.

I've gone ahead and downloaded the subversion checkout of the
webbrowser.py file to see the differences.  The svn version fixes the
issue, so then I went a hunting as to why.

In the 2.5 version, with a version of firefox running out of my home
directory (but still in my path) webbrowser calles BackgroundBrowser
instead of UnixBrowser.

BackgroundBrowser calls subprocess.Popen(cmdline), where cmdline is a
tuble in form ['/browser/path', '"http://example.com"'], and subprocess
doesn't use/like the double quotes (probably legacy os.popen format)

The difference in the two webbrowser scripts that fixes it is thus:

446a445,455
>     # The default Gnome browser
>     if _iscommand("gconftool-2"):
>         # get the web browser string from gconftool
>         gc = 'gconftool-2 -g /desktop/gnome/url-handlers/http/command
2>/dev/n
ull'
>         out = os.popen(gc)
>         commd = out.read().strip()
>         retncode = out.close()
> 
>         # if successful, register it
>         if retncode is None and commd:
>             register("gnome", None, BackgroundBrowser(commd.split()))
448,456c457
<     # The default GNOME browser
<     if "GNOME_DESKTOP_SESSION_ID" in os.environ and
_iscommand("gnome-open"):
<         register("gnome-open", None, BackgroundBrowser("gnome-open"))
< 
<     # The default KDE browser
<     if "KDE_FULL_SESSION" in os.environ and _iscommand("kfmclient"):
<         register("kfmclient", Konqueror, Konqueror("kfmclient"))
< 
<     # The Mozilla/Netscape browsers

so it appears to be a problem with gconf that python has to work around.

see:  https://bugs.launchpad.net/ubuntu/+source/python2.5/+bug/83974


So as long as it is in trunk 2.5.2 should fix it! (the patch is not in
2.5.1).  thanks.
History
Date User Action Args
2008-01-23 03:04:06elessarsetspambayes_score: 0.0197305 -> 0.019730529
recipients: + elessar, gvanrossum
2008-01-23 03:04:05elessarsetspambayes_score: 0.0197305 -> 0.0197305
messageid: <1201057445.76.0.125574722867.issue1911@psf.upfronthosting.co.za>
2008-01-23 03:04:04elessarlinkissue1911 messages
2008-01-23 03:04:02elessarcreate