summaryrefslogtreecommitdiff
path: root/libappstream-builder/plugins/asb-plugin-desktop.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-07-11 09:00:35 +0100
committerRichard Hughes <richard@hughsie.com>2014-07-11 11:25:39 +0100
commit1f09d226c918c6b94bdafbda591786d0b4c173a1 (patch)
tree4deaeb8f3039c5899fb0c470a5187d617b51905b /libappstream-builder/plugins/asb-plugin-desktop.c
parent88c74b4370d11c41039887c6aa45b4a74f67ab23 (diff)
downloadappstream-glib-1f09d226c918c6b94bdafbda591786d0b4c173a1.tar.gz
Do not allow NoDisplay=true applications to ever be in the metadata
Diffstat (limited to 'libappstream-builder/plugins/asb-plugin-desktop.c')
-rw-r--r--libappstream-builder/plugins/asb-plugin-desktop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libappstream-builder/plugins/asb-plugin-desktop.c b/libappstream-builder/plugins/asb-plugin-desktop.c
index 4beb97c..335f955 100644
--- a/libappstream-builder/plugins/asb-plugin-desktop.c
+++ b/libappstream-builder/plugins/asb-plugin-desktop.c
@@ -287,9 +287,9 @@ asb_plugin_process_filename (AsbPlugin *plugin,
if (!ret)
return FALSE;
- /* NoDisplay requires AppData */
+ /* NoDisplay apps are never included */
if (as_app_get_metadata_item (AS_APP (app), "NoDisplay") != NULL)
- asb_app_add_requires_appdata (app, "NoDisplay=true");
+ asb_app_add_veto (app, "NoDisplay=true");
/* Settings or DesktopSettings requires AppData */
if (as_app_has_category (AS_APP (app), "Settings"))