Support showing details of an app without .desktop in AppStream id
GNOME Software isn't able to show details for applications without .desktop
in their AppStream id
even though launchable
is the preferred way of matching the desktop file.
https://www.freedesktop.org/software/appstream/docs/sect-Metadata-Application.html#tag-id-desktopapp
In previous AppStream releases, the was used to associate metainfo files with their .desktop files to merge in data from .desktop files into the AppStream generator's final output. In modern metainfo files, the component-ID for desktop-application components can be an arbitrary reverse-DNS string (matching the naming rules applying to all AppStream metadata), while the tag is used to associate .desktop files with their metainfo files.
OK:
-
gnome-software --details="ar.xjuan.Cambalache.desktop"
👍 -
gnome-software --details="ar.xjuan.Cambalache"
👍
<?xml version="1.0" encoding="UTF-8" ?>
<component type="desktop">
<id>ar.xjuan.Cambalache.desktop</id>
...
KO:
-
gnome-software --details="re.sonny.Commit.desktop"
👎 -
gnome-software --details="re.sonny.Commit"
👎
<?xml version="1.0" encoding="UTF-8" ?>
<component type="desktop">
<id>re.sonny.Commit</id>
<launchable type="desktop-id">re.sonny.Commit.desktop</launchable>
...
Steps to reproduce
flatpak install re.sonny.Commit
gnome-software --details="re.sonny.Commit" # Or use GNOME Shell "Show Details"
What happens
GNOME Software shows Sorry! There are no details for that application.
Expected result
GNOME Software shows the application details