Cannot process content type
11:34:54:783 XbSilo ignoring invalid file /usr/share/applications/python2.7.desktop:ctime=1651160322.936085:filename=/usr/share/applications/python2.7.desktop: cannot process content type application/x-troff-man
11:34:54:794 XbSilo ignoring invalid file /usr/share/applications/org.gnome.Glade.desktop:ctime=1677586761.670626:filename=/usr/share/applications/org.gnome.Glade.desktop: cannot process content type application/x-glade
11:34:54:874 XbSilo ignoring invalid file /usr/share/applications/org.gnome.Rhythmbox3.device.desktop:ctime=1690633776.746253:filename=/usr/share/applications/org.gnome.Rhythmbox3.device.desktop: cannot process content type text/x-systemd-unit
11:34:55:009 XbSilo ignoring invalid file /usr/share/applications/python3.8.desktop:ctime=1609460152.758307:filename=/usr/share/applications/python3.8.desktop: cannot process content type application/x-troff-man
Should we use the simple adapter for desktop files as below, -or- special case "application/x-desktop"
mime in libxmlb
?
--- a/plugins/core/gs-plugin-appstream.c
+++ b/plugins/core/gs-plugin-appstream.c
@@ -331,7 +331,7 @@ gs_plugin_appstream_load_desktop_fn (GsPluginAppstream *self,
g_autoptr(XbBuilderSource) source = xb_builder_source_new ();
/* add support for desktop files */
- xb_builder_source_add_adapter (source, "application/x-desktop",
+ xb_builder_source_add_simple_adapter (source, "application/x-desktop",
gs_plugin_appstream_load_desktop_cb, NULL, NULL);
/* add source */