public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] eutils.eclass: make_desktop_entry doesn't follow freedesktop spec
@ 2012-02-23  9:29 Pacho Ramos
  2012-02-23 13:49 ` Brian Dolbec
  2012-02-23 15:27 ` Ulrich Mueller
  0 siblings, 2 replies; 8+ messages in thread
From: Pacho Ramos @ 2012-02-23  9:29 UTC (permalink / raw
  To: gentoo-dev


[-- Attachment #1.1: Type: text/plain, Size: 338 bytes --]

Attached patch tries to make it respect:
http://standards.freedesktop.org/menu-spec/latest/apa.html

for app-* categories. Currently, all categories are set as "Main
Category" and that causes them to be shown under "Others" in Gnome menu.
The way to go is to put "Additional Categories" insider their respective
main categories.


[-- Attachment #1.2: 1.patch --]
[-- Type: text/x-patch, Size: 1492 bytes --]

--- /home/pacho/gentoo-x86/eclass/eutils.eclass	2012-02-18 09:30:19.000000000 +0100
+++ /usr/portage/eclass/eutils.eclass	2012-02-23 10:27:04.000000000 +0100
@@ -653,22 +653,22 @@
 		case ${catmaj} in
 			app)
 				case ${catmin} in
-					accessibility) type=Accessibility;;
+					accessibility) type="Utility;Accessibility";;
 					admin)         type=System;;
 					antivirus)     type=System;;
-					arch)          type=Archiving;;
-					backup)        type=Archiving;;
-					cdr)           type=DiscBurning;;
-					dicts)         type=Dictionary;;
+					arch)          type="Utility;Archiving";;
+					backup)        type="Utility;Archiving";;
+					cdr)           type="AudioVideo;DiscBurning";;
+					dicts)         type="Office;Dictionary";;
 					doc)           type=Documentation;;
-					editors)       type=TextEditor;;
-					emacs)         type=TextEditor;;
-					emulation)     type=Emulator;;
-					laptop)        type=HardwareSettings;;
+					editors)       type="Utility;TextEditor";;
+					emacs)         type="Utility;TextEditor";;
+					emulation)     type="System;Emulator";;
+					laptop)        type="Settings;HardwareSettings";;
 					office)        type=Office;;
-					pda)           type=PDA;;
-					vim)           type=TextEditor;;
-					xemacs)        type=TextEditor;;
+					pda)           type="Office;PDA";;
+					vim)           type="Utility;TextEditor";;
+					xemacs)        type="Utility;TextEditor";;
 				esac
 				;;
 

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-02-26 13:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-23  9:29 [gentoo-dev] eutils.eclass: make_desktop_entry doesn't follow freedesktop spec Pacho Ramos
2012-02-23 13:49 ` Brian Dolbec
2012-02-23 15:27 ` Ulrich Mueller
2012-02-23 15:34   ` Samuli Suominen
2012-02-23 16:03     ` Ulrich Mueller
2012-02-23 20:26       ` Pacho Ramos
2012-02-24 17:17         ` Ulrich Mueller
2012-02-26 13:21           ` Pacho Ramos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox