As it is, make_desktop_entry isn't particularly complete in determining which categories it should. As it is, it really detects games-*, net-* and app-emulation. Reproducible: Always Steps to Reproduce:
Created attachment 53583 [details, diff] patch to make make_desktop_entry Makes make_desktop_entry a lot more complete for detecting the category for a .desktop entry.
Sounds pretty good to me, but just my 2 cents: - don't add those commented-out lines, they only confuse the final code - group similar categories in a single switch statements (I'm talking about app-editors, emacs, xemacs and vim). Good job imho :)
the reason it only supports a few categories is because i wrote it just for game related packages, everyone else sucks ;)
As for the commented out sections, it was because there's a variable subdir which I didn't really know what it did, but it didn't seem to do anything. Nothing seems to break with them commented out, so they probably can be removed. As for grouping similar categories, I would have to disagree. I put them in (I hope) alphabetical order, believing that it might be slightly easier to maintain. So SpanKY, is would it possible to get this into eutils? I recall in another bug you mentioning that make_desktop_entry is just a bandaid for domenu... Regardless of that, I think this patch could make it a better bandaid while domenu is in the works.
Created attachment 53667 [details, diff] eutils.eclass.new how about this one ?
Looks really good. Much, much cleaner than mine :)
thanks added to cvs