Skip to content

Ship AppStream metainfo in the .deb so software centres show the licence #799

Closed

Description

@DeepDiver1975

Problem

GNOME Software (and KDE Discover) show the installed Lagebuch .deb as Unknown License, with the warning "may be proprietary". They also show no age rating, no screenshots and no bug tracker link. Lagebuch is MIT, but these software centres read the licence and the rest of their app page from AppStream metainfo, and packaging/linux/build-deb.sh ships none.

The icon side is already done: the hicolor icons, Icon=, StartupWMClass and the hicolor-icon-theme dependency are all in place. Only the metainfo is missing.

Proposal

Have build-deb.sh generate /usr/share/metainfo/de.codeforfire.lagebuch.metainfo.xml, the way CodeForFire/freizeichen#18 does for Freizeichen:

  • <id>de.codeforfire.lagebuch</id>, the id the macOS bundle already uses, with <launchable type="desktop-id">lagebuch.desktop</launchable> tying it to the existing entry
  • <project_license>MIT</project_license>, <metadata_license>CC0-1.0</metadata_license>
  • German <summary> and <description> (the entry's Comment is a good start)
  • <developer>, plus homepage and bug tracker URLs
  • <provides><mediatype>application/x-lagebuch</mediatype></provides>, so the Einsatzdatei type is advertised
  • <content_rating type="oars-1.1"/>
  • <releases> with the packaged version
  • <screenshots> from docs/screenshots/ (1920×1032 desktop shots, a good size for software centres), referenced through raw.githubusercontent.com at the release tag so each version shows its own

Then validate it in the release workflow: appstreamcli validate --no-net (package appstream) on the installed file, next to the existing desktop-file-validate.

Things to know

  • Testing: GNOME Software runs as a background service and keeps its data until restarted. Run gnome-software --quit after installing, then check the installed app's page. appstreamcli get de.codeforfire.lagebuch confirms the metadata without the GUI.
  • Known limitation: a .deb opened in GNOME Software before installing still shows an unknown licence and size. That comes from PackageKit's apt backend, which hard-codes "unknown" as the licence for every package (backends/apt/apt-job.cpp, emitPackageDetail). No package content can change it.

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    packaging
    on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpackaging

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions