diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c index 965e1ca53..e2f05b2b9 100644 --- a/common/flatpak-dir.c +++ b/common/flatpak-dir.c @@ -7639,6 +7639,7 @@ flatpak_export_dir (GFile *source, "share/dbus-1/services", "../../..", "share/gnome-shell/search-providers", "../../..", "share/mime/packages", "../../..", + "share/metainfo", "../..", "bin", "..", }; int i; diff --git a/common/flatpak-utils.c b/common/flatpak-utils.c index e115dd991..a7f513e44 100644 --- a/common/flatpak-utils.c +++ b/common/flatpak-utils.c @@ -733,6 +733,10 @@ flatpak_get_allowed_exports (const char *source_path, { g_ptr_array_add (allowed_extensions, g_strdup (".xml")); } + else if (strcmp (source_path, "share/metainfo") == 0) + { + g_ptr_array_add (allowed_extensions, g_strdup (".xml")); + } else return FALSE;