Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 212350 - desktop-file-{install,validate} do not accept X-* categories
Summary: desktop-file-{install,validate} do not accept X-* categories
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: desktop-file-utils
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ray Strode [halfline]
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-10-26 14:19 UTC by Ville Skyttä
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-10-28 15:17:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Accept categories starting with "X-" (293 bytes, patch)
2006-10-26 14:19 UTC, Ville Skyttä
no flags Details | Diff

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


Note You need to log in before you can comment on or make changes to this bug.