>From https://standards.freedesktop.org/menu-spec/latest/apas03.html:
Reserved Categories have a desktop-specific meaning that has not been
standardized (yet). Desktop entry files that use a reserved category MUST
also include an appropriate OnlyShowIn= entry to restrict themselves to
those environments that properly support the reserved category as used.
---
util/wmmenugen_parse_xdg.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/util/wmmenugen_parse_xdg.c b/util/wmmenugen_parse_xdg.c
index 47a2fb57..28d5b281 100644
--- a/util/wmmenugen_parse_xdg.c
+++ b/util/wmmenugen_parse_xdg.c
@@ -535,6 +535,19 @@ static void getMenuHierarchyFor(char **xdgmenuspec)
} else if (strcmp(p, "Utility") == 0) {
snprintf(buf, sizeof(buf), "%s", _("Utility"));
break;
+ /* reserved categories */
+ } else if (strcmp(p, "Screensaver") == 0) {
+ snprintf(buf, sizeof(buf), "%s", _("Screensaver"));
+ break;
+ } else if (strcmp(p, "TrayIcon") == 0) {
+ snprintf(buf, sizeof(buf), "%s", _("Tray Icon"));
+ break;
+ } else if (strcmp(p, "Applet") == 0) {
+ snprintf(buf, sizeof(buf), "%s", _("Applet"));
+ break;
+ } else if (strcmp(p, "Shell") == 0) {
+ snprintf(buf, sizeof(buf), "%s", _("Shell"));
+ break;
}
p = strtok(NULL, ";");
}
--
2.11.0
--
To unsubscribe, send mail to [email protected].