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.
I replaced the browser checking in open_url with this and it worked fine in my Ubuntu Karmic.
try: 'DISPLAY' ):
subprocess. call(sudo_ prefix + ['xdg-open', url])
if os.getenv(
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