common-id extractor to infer launchable for legacy support

Bug #1778546 reported by Harald Sitter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Medium
Sergio Schvezov

Bug Description

Currently the appstream extractor will only go looking for a desktop file iff a `launchable` is set in the appstream data. Unfortunately older desktop files may still rely on the previous functionality which was that the`id` == desktop-id (e.g. `org.kde.foo.desktop`).

To support that properly the extractor should also attempt to locate the desktop if no launchable is present BUT the id ends with '.desktop'.

For broadest compatibility the extractor could always go looking for the desktop file even when no launchable was provided, appending '.desktop' as necessary. This is however not required from a spec POV, just a thought.

See note at
https://www.freedesktop.org/software/appstream/docs/sect-Metadata-Application.html#tag-id-desktopapp

tags: added: 19.04 19.04-blue 19.04-external
Changed in snapcraft:
milestone: none → 3.1
assignee: nobody → Sergio Schvezov (sergiusens)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
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.