[gnome-software] snap: Update Snap store category mapping
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] snap: Update Snap store category mapping
- Date: Wed, 17 Jul 2019 07:21:36 +0000 (UTC)
commit 1a5aad242d948d7d6c652ad35fb44ac60a39a263
Author: Robert Ancell <robert ancell canonical com>
Date: Wed Jul 17 14:07:04 2019 +1200
snap: Update Snap store category mapping
The store changed the names of some sections, update the mapping to the XDG
categories.
plugins/snap/gs-plugin-snap.c | 23 +++++++++++++++++++----
1 file changed, 19 insertions(+), 4 deletions(-)
---
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index 3cd749c1..b5616e27 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -483,20 +483,35 @@ gs_plugin_add_category_apps (GsPlugin *plugin,
g_string_prepend (id, gs_category_get_id (c));
}
+ /*
+ * Unused categories:
+ *
+ * health-and-fitness
+ * personalisation
+ * devices-and-iot
+ * security
+ * server-and-cloud
+ * entertainment
+ */
+
if (strcmp (id->str, "games/featured") == 0)
sections = "games";
else if (strcmp (id->str, "audio-video/featured") == 0)
- sections = "music;video";
+ sections = "music-and-audio";
else if (strcmp (id->str, "graphics/featured") == 0)
- sections = "graphics";
+ sections = "photo-and-video;art-and-design";
else if (strcmp (id->str, "communication/featured") == 0)
- sections = "social-networking";
+ sections = "social;news-and-weather";
else if (strcmp (id->str, "productivity/featured") == 0)
sections = "productivity;finance";
else if (strcmp (id->str, "developer-tools/featured") == 0)
- sections = "developers";
+ sections = "development";
else if (strcmp (id->str, "utilities/featured") == 0)
sections = "utilities";
+ else if (strcmp (id->str, "education-science/featured") == 0)
+ sections = "education;science";
+ else if (strcmp (id->str, "reference/featured") == 0)
+ sections = "books-and-reference";
if (sections != NULL) {
g_auto(GStrv) tokens = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]