@aleixpol
Copy link
Collaborator

When I use the file from the distro (i.e. normal behaviour) I get:

$ appstreamcli search sparklesh
Identifier: org.sparkleshare.SparkleShare [desktop-application]
Name: SparkleShare

But if I parse the file like we do to import flathub's appstream.xml, I get org.sparkleshare.SparkleShare.desktop when calling AppStream::Component::id().

I don't seem to be able to attach files here, but it can be read easily at /var/lib/flatpak/appstream/flathub/x86_64/active/appstream.xml.

Any idea why where the .desktop postfix would be coming from?