diff options
author | Richard Hughes <richard@hughsie.com> | 2014-12-08 10:17:34 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-12-11 19:20:12 +0000 |
commit | 7df4e6bc98e248c1f2f9a6d7783e5959dc539076 (patch) | |
tree | 31f86430c28ca81a08aa030b233d5f2cbb1c3329 | |
parent | 421ac02a5f8053d204d94398907248332f6a8e56 (diff) | |
download | appstream-glib-7df4e6bc98e248c1f2f9a6d7783e5959dc539076.tar.gz |
Do not veto applications with NoDisplay=false
-rw-r--r-- | libappstream-glib/as-app.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c index b1765a0..45570fa 100644 --- a/libappstream-glib/as-app.c +++ b/libappstream-glib/as-app.c @@ -3452,7 +3452,12 @@ as_app_parse_file_key (AsApp *app, /* NoDisplay */ if (g_strcmp0 (key, G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY) == 0) { - as_app_add_veto (app, "NoDisplay=true"); + tmp = g_key_file_get_string (kf, + G_KEY_FILE_DESKTOP_GROUP, + key, + NULL); + if (tmp != NULL && strcasecmp (tmp, "True") == 0) + as_app_add_veto (app, "NoDisplay=true"); /* Type */ } else if (g_strcmp0 (key, G_KEY_FILE_DESKTOP_KEY_TYPE) == 0) { |