system crash reports not opened with my default browser
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
High
|
Martin Pitt | ||
update-notifier (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
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.
except TypeError:
try:
try:
except OSError as e:
# fall back to webbrowser
running 'xdg-open "http://
'sudo -H -u \#1000 xdg-open "http://
Related branches
tags: | added: trusty |
Changed in apport (Ubuntu): | |
importance: | Undecided → High |
assignee: | nobody → Martin Pitt (pitti) |
Changed in apport (Ubuntu): | |
status: | New → Triaged |
Changed in update-notifier (Ubuntu): | |
status: | New → Triaged |
xdg-open relies on $KDE_FULL_SESSION and $GNOME_ DESKTOP_ SESSION_ ID ($DBUS_ SESSION_ BUS_ADDRESS would also be helpful), which we somehow need to funnel through pkexec. Without that, it just calls x-www-browser which has no idea about the user's preferred browser.