public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Patch make_desktop_entry to produce entries that validate better
@ 2007-11-17 22:53 Petteri Räty
  2007-11-18  0:01 ` Petteri Räty
  0 siblings, 1 reply; 4+ messages in thread
From: Petteri Räty @ 2007-11-17 22:53 UTC (permalink / raw
  To: gentoo-dev


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

Any objections to the attached patch:

betelgeuse@pena ~ $ desktop-file-validate
/usr/share/applications/jedit-jedit.desktop
/usr/share/applications/jedit-jedit.desktop: warning: key "Encoding" in
group "Desktop Entry" is deprecated
/usr/share/applications/jedit-jedit.desktop: warning: value "" for key
"Path" in group "Desktop Entry" does not look like an absolute path

Regards,
Petteri

[-- Attachment #1.2: desktop-file-utils.patch --]
[-- Type: text/plain, Size: 405 bytes --]

--- /usr/portage/dev-util/desktop-file-utils/desktop-file-utils-0.10-r1.ebuild	2005-11-06 04:42:18.000000000 +0200
+++ desktop-file-utils-0.11.ebuild	2006-09-10 01:08:28.000000000 +0300
@@ -13,7 +13,7 @@
 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
 IUSE=""
 
-RDEPEND=">=dev-libs/glib-2.0.0
+RDEPEND=">=dev-libs/glib-2.6.0
 	>=dev-libs/popt-1.6.3"
 
 DEPEND="${RDEPEND}

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

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

* Re: [gentoo-dev] Patch make_desktop_entry to produce entries that validate better
  2007-11-17 22:53 [gentoo-dev] Patch make_desktop_entry to produce entries that validate better Petteri Räty
@ 2007-11-18  0:01 ` Petteri Räty
  2007-11-18  1:59   ` Daniel Pielmeier
  0 siblings, 1 reply; 4+ messages in thread
From: Petteri Räty @ 2007-11-18  0:01 UTC (permalink / raw
  To: gentoo-dev


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

Petteri Räty kirjoitti:
> Any objections to the attached patch:
> 
> betelgeuse@pena ~ $ desktop-file-validate
> /usr/share/applications/jedit-jedit.desktop
> /usr/share/applications/jedit-jedit.desktop: warning: key "Encoding" in
> group "Desktop Entry" is deprecated
> /usr/share/applications/jedit-jedit.desktop: warning: value "" for key
> "Path" in group "Desktop Entry" does not look like an absolute path
> 
> Regards,
> Petteri
> 

Hmm. Wrong patch attached.

[-- Attachment #1.2: make_desktop_entry.patch --]
[-- Type: text/plain, Size: 596 bytes --]

Index: eutils.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v
retrieving revision 1.292
diff -u -r1.292 eutils.eclass
--- eutils.eclass	14 Oct 2007 21:55:35 -0000	1.292
+++ eutils.eclass	17 Nov 2007 22:53:28 -0000
@@ -882,11 +882,12 @@
 	Comment=${DESCRIPTION}
 	Exec=${exec}
 	TryExec=${exec%% *}
-	Path=${path}
 	Icon=${icon}
 	Categories=${type};
 	EOF
 
+	[[ ${path} ]] && echo "Path=${path}" >> "${desktop}"
+
 	(
 		# wrap the env here so that the 'insinto' call
 		# doesn't corrupt the env of the caller

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

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

* Re: [gentoo-dev] Patch make_desktop_entry to produce entries that validate better
  2007-11-18  0:01 ` Petteri Räty
@ 2007-11-18  1:59   ` Daniel Pielmeier
  2007-11-20 22:32     ` Chris Gianelloni
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Pielmeier @ 2007-11-18  1:59 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 972 bytes --]

Petteri Räty schrieb:
> Petteri Räty kirjoitti:
>> Any objections to the attached patch:
>>
>> betelgeuse@pena ~ $ desktop-file-validate
>> /usr/share/applications/jedit-jedit.desktop
>> /usr/share/applications/jedit-jedit.desktop: warning: key "Encoding" in
>> group "Desktop Entry" is deprecated
>> /usr/share/applications/jedit-jedit.desktop: warning: value "" for key
>> "Path" in group "Desktop Entry" does not look like an absolute path
>>
>> Regards,
>> Petteri
>>
> 
> Hmm. Wrong patch attached.

There are two other bugs (#197891, #181999) which are related to changes
regarding the freedesktop specs. One for the Encoding key depreciation
which you can see above too and one for the Icon key which should not
specify a suffix if the value does not use the full path to the icon.
These could be taken into consideration when desktop-file-utils-0.14 is
stable on all archs.

I have attached an updated patch.

Regards,

Daniel




[-- Attachment #2: make_desktop_entry.patch --]
[-- Type: text/plain, Size: 841 bytes --]

--- eutils.eclass	2007-11-18 02:06:50.000000000 +0100
+++ eutils.eclass	2007-11-18 02:32:44.000000000 +0100
@@ -741,7 +741,7 @@
 
 	local exec=${1}
 	local name=${2:-${PN}}
-	local icon=${3:-${PN}.png}
+	local icon=${3:-${PN}}
 	local type=${4}
 	local path=${5}
 
@@ -875,18 +875,18 @@
 
 	cat <<-EOF > "${desktop}"
 	[Desktop Entry]
-	Encoding=UTF-8
 	Version=1.0
 	Name=${name}
 	Type=Application
 	Comment=${DESCRIPTION}
 	Exec=${exec}
 	TryExec=${exec%% *}
-	Path=${path}
 	Icon=${icon}
 	Categories=${type};
 	EOF
 
+	[[ ${path} ]] && echo "Path=${path}" >> "${desktop}"
+
 	(
 		# wrap the env here so that the 'insinto' call
 		# doesn't corrupt the env of the caller
@@ -938,7 +938,6 @@
 
 	cat <<-EOF > "${desktop}"
 	[Desktop Entry]
-	Encoding=UTF-8
 	Name=${title}
 	Comment=This session logs you into ${title}
 	Exec=${command}

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

* Re: [gentoo-dev] Patch make_desktop_entry to produce entries that validate better
  2007-11-18  1:59   ` Daniel Pielmeier
@ 2007-11-20 22:32     ` Chris Gianelloni
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Gianelloni @ 2007-11-20 22:32 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 297 bytes --]

On Sun, 2007-11-18 at 02:59 +0100, Daniel Pielmeier wrote:
> I have attached an updated patch.

Thanks, Daniel.  The patch has been applied.

-- 
Chris Gianelloni
Release Engineering Strategic Lead
Alpha/AMD64/x86 Architecture Teams
Games Developer/Foundation Trustee
Gentoo Foundation

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

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

end of thread, other threads:[~2007-11-20 22:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-17 22:53 [gentoo-dev] Patch make_desktop_entry to produce entries that validate better Petteri Räty
2007-11-18  0:01 ` Petteri Räty
2007-11-18  1:59   ` Daniel Pielmeier
2007-11-20 22:32     ` Chris Gianelloni

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