GNOME Bugzilla – Bug 337786
desktop-file-validate should verify Categories
Last modified: 2007-01-22 17:05:04 UTC
That bug has been opened on https://launchpad.net/distros/ubuntu/+source/desktop-file-utils/+bug/38804 "The desktop-file-validate program should validate the Categories entry against the known categories in the specification. http://librarian.launchpad.net/1985952/category-match.diff There doesn't seem to be a patch architecture already in use in the package, but src/validate.c with this patch will check the categories against 1.0-draft4. ..."
Created attachment 63010 [details] [review] patch by Emmet Hikory <emmet.hikory@gmail.com>
bug submitter comment: "Thanks for forwarding. Please note that there is a missing 'l' in the patch sent upstream (...fiename...). This is corrected in the debdiff (although that may not belong upstream). My apologies for the error."
Created attachment 63559 [details] [review] Updated patch without the typo
Thanks, committed: 2006-04-18 Ray Strode <rstrode@redhat.com> Validate that desktop file categories match those specified in the spec. Patch from Emmet Hikory <emmet.hikory@gmail.com> and Vincent Untz <vuntz@gnome.org> (bug 3337786) * src/validate.c (validate_categories): new function to ensure that categories are known.