Bug 20195 - introduce more strict relation of Main Category and Additional Category
Summary: introduce more strict relation of Main Category and Additional Category
Status: RESOLVED FIXED
Alias: None
Product: desktop-file-utils
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Vincent Untz
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 20189
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-18 08:22 UTC by Stanislav Brabec
Modified: 2010-02-16 16:40 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Stanislav Brabec 2009-02-18 08:22:09 UTC
As bug 20189 says, most vendors implement just only documented combinations of Main Category and Additional Category, leaving obscure and non-suggested combinations unsorted (example: Game;FileTools;).

It would be nice to introduce the more strict interpretation of standard (proposed in bug 20189) in desktop-file-validate, as most vendors expect only listed combinations.

A configure time warning/error option would be a good start point.
Comment 1 Vincent Untz 2009-02-18 08:25:51 UTC
Can you quickly try desktop-file-validate from CVS? I have implemented more checks for categories there.
Comment 2 Stanislav Brabec 2009-02-18 08:56:19 UTC
It seems to work:

grep Categories ugly.desktop
Categories=Game;FileTools;

Output:
ugly.desktop: error: value "FileTools" in key "Categories" in group "Desktop Entry" requires another category to be present among the following categories: Utility, or System

grep Categories nice.desktop
Categories=Utility;FileTools;GTK;Core;

Output:
(no output, OK)

grep Categories strange.desktop
Categories=GTK;Game;FileTools;Utility;BoardGame;

Output:
(no output, OK)
Comment 3 Vincent Untz 2010-02-16 16:40:48 UTC
Fixed in CVS according to last comment, so closing.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.