Comment 4 for bug 1791511

Revision history for this message
Fabio Rossi (rossi-f) wrote :

Right now I am under KDE with Plasma. kicad apps are not shown (correctly for me) under the Development menu because there is the additional category Electronics.

Here are my comments (->) on specific sections of the specs (**) :

** Desktop entries should list all categories that clearly apply. They should not list categories that only vaguely or possibly apply, because the user will end up seeing the same desktop entry in a half-dozen places.

-> this refers to the extension "Categories" without distinguishing between Main or Additional ones.
-> a desktop environment *might* decide to put an application in all the categories suggested in the .desktop file but I guess, in our case, the user would never look into Development section for kicad :-)

** "The list of Main Categories consists of those categories that every conforming desktop environment MUST support. The list of Additional Categories provides categories that can be used to provide more fine grained information about the application."

-> so it's not mandatory for a desktop environment to support the Additional categories, i.e. there might not be a submenu for an Additional category (in our case Electronics) but

** "Category-based menus based on the Main Categories listed in this specification do not provide a complete ontology for all available applications. Category-based menu implementations SHOULD therefore provide a "catch-all" submenu for applications that cannot be appropriately placed elsewhere."

-> so there must be a catch-all menu where all the unclassified applications are inserted
-> if Electronic menu is not available
   - with Categories="Development;Electronics" the application will be inserted in the Development menu which is not intuitive
   - with Categories="Electronics" the application will be inserted in the catch-all menu (there is no risk not to have the application in the menu)

** "If multiple Main Categories are included in a single desktop entry file, the entry may appear more than once in the menu."

-> it's better to use only one Main category but this doesn't apply to our case

** "The Related Categories column lists one or more categories that are suggested to be used in conjunction with the Additional Category"

-> In the table the Additional category "Electronics" is not associated with any Main category so my interpretation is that can be used as is without a main category associated. This interpretation is also supported by one of the examples (look at Octave)

https://specifications.freedesktop.org/menu-spec/latest/ar01s03.html#desktop-entry-extensions-examples

where it is shown it's not mandatory to insert a Main category.

Finally another consideration. Most desktop environments today permits you to search for an application without searching in the menus so probably the specifications are a little bit anachronistic :-)

What do you think? IMHO the solution of having only Electronics is cleaner and considering all the above points it makes a better user experience.