public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Pacho Ramos <pacho@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] eutils.eclass: make_desktop_entry doesn't follow freedesktop spec
Date: Thu, 23 Feb 2012 10:29:51 +0100	[thread overview]
Message-ID: <1329989391.2734.2.camel@belkin4> (raw)


[-- 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 --]

             reply	other threads:[~2012-02-23  9:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-23  9:29 Pacho Ramos [this message]
2012-02-23 13:49 ` [gentoo-dev] eutils.eclass: make_desktop_entry doesn't follow freedesktop spec 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1329989391.2734.2.camel@belkin4 \
    --to=pacho@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox