diff options
author | Richard Hughes <richard@hughsie.com> | 2015-09-29 13:42:21 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2015-09-29 13:42:21 +0100 |
commit | 29e112e7850d3fc0950d1f3267a29aef43c3480d (patch) | |
tree | f94ad27b5a4287dbb61a816aeb7a3ff4e8b8af62 | |
parent | 4786a0b7692e29568ea091f109dd2ebc51ae2b41 (diff) | |
download | appstream-glib-29e112e7850d3fc0950d1f3267a29aef43c3480d.tar.gz |
trivial: Don't issue an icon warning during check-root for non-desktop components
-rw-r--r-- | client/as-util.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/client/as-util.c b/client/as-util.c index 0aa04d1..b156109 100644 --- a/client/as-util.c +++ b/client/as-util.c @@ -2754,6 +2754,15 @@ as_util_check_root_app_icon (AsApp *app, GError **error) g_autofree gchar *icon = NULL; g_autoptr(GdkPixbuf) pb = NULL; + /* these are set by the software center */ + switch (as_app_get_id_kind (app)) { + case AS_ID_KIND_INPUT_METHOD: + case AS_ID_KIND_CODEC: + return TRUE; + default: + break; + } + /* nothing found */ icon_default = as_app_get_icon_default (app); if (icon_default == NULL) { |