[Bug 1287460] Re: system crash reports not opened with my default browser

Launchpad Bug Tracker 1287460 at bugs.launchpad.net
Fri Mar 7 16:42:13 UTC 2014


This bug was fixed in the package apport - 2.13.3-0ubuntu1

---------------
apport (2.13.3-0ubuntu1) trusty; urgency=medium

  [ Martin Pitt ]
  * New upstream release:
    - etc/cron.daily/apport: Cleanup .drkonqi files after 7 days. Thanks Harald
      Sitter.
    - ui.py: Try to grab session D-BUS address from user's session when being
      called through pkexec. (LP: #1287460)

  [ Brian Murray ]
  * data/package-hooks/source_linux.py: ensure dupe_sig1 and dupe_sig2 are
    None if they are not found
 -- Martin Pitt <martin.pitt at ubuntu.com>   Fri, 07 Mar 2014 16:34:45 +0100

** Changed in: apport (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-notifier in Ubuntu.
https://bugs.launchpad.net/bugs/1287460

Title:
  system crash reports not opened with my default browser

Status in “apport” package in Ubuntu:
  Fix Released
Status in “update-notifier” package in Ubuntu:
  Invalid

Bug description:
  When I receive a crash notification for a system crash (one that
  requires root to read and write to the .crash file) and I choose to
  report the bug, the bug report is opened with chromium instead of
  firefox (my default browser).  Looking apport/ui.py we see:

          # If we are called through sudo, determine the real user id and run the
          # browser with it to get the user's web browser settings.
          try:
              uid = int(os.getenv('PKEXEC_UID', os.getenv('SUDO_UID')))
              sudo_prefix = ['sudo', '-H', '-u', '#' + str(uid)]
          except TypeError:
              sudo_prefix = []

          try:
              try:
                  subprocess.call(sudo_prefix + ['xdg-open', url])
              except OSError as e:
                  # fall back to webbrowser
                  webbrowser.open(url, new=True, autoraise=True)
                  sys.exit(0)

  running 'xdg-open "http://www.google.com"' opens google in firefox, however starting a root shell via "sudo -i" and running
  'sudo -H -u \#1000 xdg-open "http://www.google.com"' opens google in chromium-browser.  Further more, running 'xdg-open "http://www.google.com"' as root presents me with a warning about refusing to start chromium as root so it seems that the xdg-open call is using root's preferred browser and not mine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1287460/+subscriptions



More information about the foundations-bugs mailing list