FileNotFoundError in find_package_desktopfile

Bug #1997753 reported by errors.ubuntu.com bug bridge
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
Fix Released
Medium
Unassigned
apport (Ubuntu)
Fix Released
Medium
Benjamin Drung

Bug Description

Traceback (most recent call last):
  File "/usr/share/apport/apport-gtk", line 704, in <module>
    app.run_argv()
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 922, in run_argv
    return self.run_crashes()
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 322, in run_crashes
    self.run_crash(f)
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 379, in run_crash
    response = self.ui_present_report_details(allowed_to_report)
  File "/usr/share/apport/apport-gtk", line 302, in ui_present_report_details
    self.desktop_info = self.get_desktop_entry()
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 1921, in get_desktop_entry
    desktop_file = apport.fileutils.find_package_desktopfile(
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 113, in find_package_desktopfile
    with open(line, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/etc/xdg/autostart/blueman.desktop'

The Ubuntu Error Tracker has been receiving reports about a problem regarding apport. This problem was most recently seen with package version 2.23.1-0ubuntu3, the problem page at https://errors.ubuntu.com/problem/be4a07b49d3ee04d85bd885e95388a78d6f699f0 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.

Tags: kinetic
Benjamin Drung (bdrung)
description: updated
summary: - /usr/share/apport/apport-gtk:FileNotFoundError:/usr/share/apport/apport-
- gtk@704:run_argv:run_crashes:run_crash:ui_present_report_details:get_desktop_entry:find_package_desktopfile
+ FileNotFoundError in find_package_desktopfile
Benjamin Drung (bdrung)
Changed in apport:
milestone: none → 2.24.0
Changed in apport (Ubuntu):
importance: Undecided → Medium
Changed in apport:
importance: Undecided → Medium
Benjamin Drung (bdrung)
Changed in apport (Ubuntu):
status: New → In Progress
assignee: nobody → Benjamin Drung (bdrung)
Revision history for this message
Benjamin Drung (bdrung) wrote :
Revision history for this message
Benjamin Drung (bdrung) wrote :
Changed in apport:
status: New → Fix Committed
Benjamin Drung (bdrung)
Changed in apport:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
apport (2.24.0-0ubuntu1) lunar; urgency=medium

  * New upstream bug-fix release.
    - Catch malformed problem reports (LP: #1996040)
    - Catch ValueError: not enough values to unpack (LP: #1995100)
    - Catch FileNotFoundError for missing desktop files (LP: #1997753)
    - Catch binascii.Error: Incorrect padding (LP: #1997912)
    - Catch AttributeError: NoneType object has no attribute origins
      (LP: #1997973)
  * Drop cherry-picked upstream patches
  * oem-getlogs: Use colon instead of a dot for chown command
  * Remove redundant section from apport-noui
  * Clarify that apport-noui is empty
  * Run black, isort, pydocstyle, pylint during package build

 -- Benjamin Drung <email address hidden> Thu, 08 Dec 2022 01:37:20 +0100

Changed in apport (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.