Comment 36 for bug 83974

Revision history for this message
Martin Pitt (pitti) wrote : Re: [feisty] apport-gtk is opening a wrong URL

Aah, got it finally: apport 0.54 had a forgotten debugging change that made it fall through using webbrowser.open(). This is the culprit, it seems to quote arguments and call gnome-open through a shell, instead of calling it directly:

>>> import webbrowser
>>> webbrowser.open('http://www.piware.de')

-> opens file:///home/martin/%22http://www.piware.de%22

This happens with

  $ gconftool --get /desktop/gnome/url-handlers/http/command
  /usr/lib/firefox/firefox "%s"

which is what upstream firefox sets if you check for default browser.

This also explains why it is fixed in python-apport 0.54, where the debugging junk has been removed and gnome-open/firefox is called directly.