error message for desktop file problems does not include how to fix them

Bug #1727435 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Triaged
Low
Tanesh Chuckowree

Bug Description

When trying to make a snap, but there's an error in the desktop file, the same exception is raised for all the possible errors:

- file does not exist
- missing 'Desktop Entry
- missing 'Exec' key

This exception only mentions the problem, but doesn't explain how to fix it. To add this information, we need to either split the exception, one for each case, or add a field for the information about the fix.

Tags: bitesize ui
Leo Arias (elopio)
tags: added: bitesize ui
Revision history for this message
Gustavo Silva (gsilvapt) wrote :

This one seems the simplest one regarding the other two error message bug reports posted. However, I could use some guidance on how to fix this one if I could have the opportunity to work in this one.

Revision history for this message
Kyle Fazzari (kyrofa) wrote :

Gustavo, this is handled in `snapcraft/internal/meta.py`, and the error in question is `snapcraft.internal.errors.InvalidDesktopFileError`. That one probably needs to be split into multiple exceptions for each use, where each give recommendations for how to fix the problem they represent.

Changed in snapcraft:
status: New → Triaged
importance: Undecided → Low
Changed in snapcraft:
assignee: nobody → Tanesh Chuckowree (tanesh)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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