Bug 400998 - appdata missing launchable key
Summary: appdata missing launchable key
Status: RESOLVED FIXED
Alias: None
Product: kirigami gallery
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-13 09:58 UTC by Harald Sitter
Modified: 2022-07-12 19:07 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Sitter 2018-11-13 09:58:09 UTC
appdata is autogenerated from kpackage, thus lacks a <launchables> definition

https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-launchable

STEPS TO REPRODUCE
1. build kirigami
2. look at ./src/org.kde.kirigami2.gallery.appdata.xml
3. find it missing launchable
4. add gallery to a distro and have final appstream data generated
5. install gallery via discover

OBSERVED RESULT

discover has no means to start the gallery because it relies on the launchable field to tell it a desktop file to look for

EXPECTED RESULT

discover should be able to start a newly installed application

ADDITIONAL INFORMATION

various automatism also rely on well written appdata to figure out the associated desktop file (e.g. snap bundle building can automatically detect and pick up desktop files if they were properly defined as launchables)

to fix this I suggest writing the appdata manually. seeing as this is an application the auto generation is fairly meh. iff you really want auto generation I suggest you don't use kpackagetool but instead rely on appstream-generator to automatically extract minimal appdata from the application desktop file.
Comment 1 Nate Graham 2022-07-12 19:07:03 UTC
Git commit 158b1cb76961f60285ada2e5e12782cf064d7bca by Nate Graham.
Committed on 12/07/2022 at 19:06.
Pushed by ngraham into branch 'master'.

Add some missing tags to AppStream metadata

M  +2    -0    org.kde.kirigami2.gallery.appdata.xml

https://invent.kde.org/sdk/kirigami-gallery/commit/158b1cb76961f60285ada2e5e12782cf064d7bca