Appdata XML file doesn't seem to show any information in GNOME Software

Hello everyone! I’m a new developer and I’m planning on releasing my first flatpak application (and publish it on flathub).

I’m pretty sure this is a mistake by my part, but I’m not sure where it is. I edited my application’s file (attached below)

    <?xml version="1.0" encoding="UTF-8"?>
    <component type="desktop">
      <name>Font Downloader</name>
      <summary>A simple GTK font downloader.</summary>
    	  <p>Have you ever wanted to change the font in your terminal, but didn't want to go through the entire process of searching, downloading and installing a font? This simple to use and adaptive GTK application allows you to search and install fonts directly from Google Fonts' website!</p>
        <screenshot type="default">
          <image type="source"></image>
          <image type="source"></image>
          <image type="source"></image>
          <image type="source"></image>
        <release version="1.0.0" date="2020-09-16"/>
      <url type="homepage"></url>
      <developer_name>Gustavo Peredo</developer_name>
      <launchable type="desktop-id">org.gustavoperedo.FontDownloader.desktop</launchable>
      <content_rating type="oars-1.1"/>

and I told meson to add it to the metainfo folder:

appstream_file = i18n.merge_file(
  input: '',
  output: 'org.gustavoperedo.FontDownloader.appdata.xml',
  type: 'xml',
  po_dir: '../po',
  install: true,
  install_dir: join_paths(get_option('datadir'), 'metainfo')

But then, and I’m not sure why, none of the things written on my xml file seem to apply (see GNOME Software below)

I would like to know how I can fix it to display the correct information in GNOME Software?

My full project can be seen at:

1 Like

Software or any store that uses appstream specs, can’t read your appdata/metainfo file that’s shipped with the app. It would mean that your store will have to download the app to show any information about it.

Instead, the list of the appdata files available in a repository like Flathub are collected on a collection of appdata files that’s being updated when you do a flatpak update. Traditional packaging systems ships that as a separate package that gets updated from time to time.

What you’re looking for is something like Appdata Preview which doesn’t exists yet.

Thank you very much!

Btw, you should avoid adding the extra .desktop to the id. That’s the desktop file name, which you already mentioned in the launchable tag.

1 Like