Bug 212350

Summary: desktop-file-{install,validate} do not accept X-* categories
Product: [Fedora] Fedora Reporter: Ville Skyttä <scop>
Component: desktop-file-utilsAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: musuruan, rdieter
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-10-28 15:17:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Accept categories starting with "X-" none

Description Ville Skyttä 2006-10-26 14:19:23 UTC
desktop-file-{install,validate} from desktop-file-utils 0.11 do not accept 
extension categories starting with "X-", but the desktop menu spec says that's 
what one should use for nonstandard extensions:

http://standards.freedesktop.org/menu-spec/latest/ar01s03.html
"Categories not in this document must be prefixed by the string "X-" 
indicating that they are extensions."

For example:

$ desktop-file-validate /usr/share/applications/gaim.desktop
[...]
/usr/share/applications/gaim.desktop: error: Categories values must be one of 
[...] (found "X-Red-Hat-Base")

Reported here because of no desktop-file-utils component in upstream Bugzilla 
(https://bugs.freedesktop.org/show_bug.cgi?id=4959)

It also rejects the "Application" category, but that's ok, as it's not a 
standard one.  Patch attached.

Comment 1 Ville Skyttä 2006-10-26 14:19:23 UTC
Created attachment 139463 [details]
Accept categories starting with "X-"

Comment 2 Ray Strode [halfline] 2006-10-26 17:44:32 UTC
Hey thanks for the patch.  I'm going to be doing an upstream desktop-file-utils
release soon, i'll fold this in.

Comment 3 Matthias Clasen 2006-10-28 15:17:35 UTC
Should be fixed in desktop-file-utils-0.11-4