Comment 4 for bug 198449

Revision history for this message
Marco Rodrigues (gothicx) wrote :

I replaced the browser checking in open_url with this and it worked fine in my Ubuntu Karmic.

try:
    if os.getenv('DISPLAY'):
        subprocess.call(sudo_prefix + ['xdg-open', url])
        sys.exit(0)
except OSError:
    pass

Martin, why apport-gtk needs to open an url with sudo? Or it was needed in some apport older version?

The only problem I see here is.. there is no --new-window option in xdg-open. I've it _ON_ in Firefox, but it's turned _OFF_ in most popular browsers by default. I've already requested this feature upstream.

Thank you