diff options
author | Richard Hughes <richard@hughsie.com> | 2016-09-28 11:48:01 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-09-28 11:50:42 +0100 |
commit | 6f397ae28f2fca8a8ad3dc2fdbb968fd39f70f77 (patch) | |
tree | 934a8418644339427f359787f0b9dd0d732a9d34 /client/as-compose.c | |
parent | b1fae406585f24b230f7a524052a8463fa17784a (diff) | |
download | appstream-glib-6f397ae28f2fca8a8ad3dc2fdbb968fd39f70f77.tar.gz |
Never inhierit Name and Comment when using appstream-compose
This has been deprecated for some time now and causes problems when we're using
a non-localised prefix on the installed desktop files.
Diffstat (limited to 'client/as-compose.c')
-rw-r--r-- | client/as-compose.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/as-compose.c b/client/as-compose.c index 5e57573..b53423f 100644 --- a/client/as-compose.c +++ b/client/as-compose.c @@ -239,6 +239,10 @@ load_desktop (const gchar *prefix, } } + /* never inherit from the desktop file (they may be prefixed) */ + g_hash_table_remove_all (as_app_get_names (app)); + g_hash_table_remove_all (as_app_get_comments (app)); + return g_steal_pointer (&app); } |