gendesk icon indicating copy to clipboard operation
gendesk copied to clipboard

Emit warning if Gnome category is not well-known

Open jose1711 opened this issue 3 years ago • 1 comments

https://specifications.freedesktop.org/menu-spec/latest/apa.html contains list of main and additional categories. I think it would be nice if gendesk displays a warning if:

  • user fails to mention at least one main category as argument to --categories
  • no additional (and well-known) category is listed

This could help avoiding mistakes like running gendesk with --categories Games instead of --categories Game;BoardGame or science instead of Science etc. There could be an additional argument (off by default) to suppress such warnings.

Optionally a few more category-related checks could be added, such as: image or hints from Related categories (https://specifications.freedesktop.org/menu-spec/latest/apas02.html) could be shown too.

jose1711 avatar Nov 16 '21 13:11 jose1711

Thanks for reporting. That's a good idea!

xyproto avatar Nov 16 '21 14:11 xyproto