public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] trouble with make_desktop_entry
@ 2005-08-29  1:42 Nick Rout
  2005-08-29  1:54 ` Mike Frysinger
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Rout @ 2005-08-29  1:42 UTC (permalink / raw
  To: gentoo-dev

I am writing an ebuild and wishing to use make_desktop_entry

I have two problems with it:

1. the resulting desktop file is called laby-laby.desktop rather than
just laby.desktop

2. the "Comment" in the desktop file says "Comment=Based on the eutils eclass"

1. I am unable to work out at all, except to say that my frozen-bubble
entry is named similarly (ie frozen-bubble-frozen-bubble.desktop) and is
also created by make_desktop_entry

2. seems to arise from this in /usr/portage/eclass/eutils.eclass

[snip]
DESCRIPTION="Based on the ${ECLASS} eclass"
[snip]
echo "[Desktop Entry]
Encoding=UTF-8
Version=0.9.2
Name=${name}
Type=Application
Comment=${DESCRIPTION}
Exec=${exec}
Path=${path}
Icon=${icon}
Categories=Application;${type};" > "${desktop}"

I would have thought perhaps that DESCRIPTION would have been the same
as the line in the ebuild.

DESCRIPTION="Lost Labyrinth, a rogue like game"

is this a bug?

The line in my ebuild is:

make_desktop_entry laby "Lost Labyrinth" ${PN}.xpm "Game;RolePlaying;"

Thanks for any suggestions. this line appears in /usr/portage/eclass/eutils.eclass

# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.194 2005/08/09 22:40:39 vapier Exp $


-- 
Nick Rout <nick@rout.co.nz>

-- 
gentoo-dev@gentoo.org mailing list



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

* Re: [gentoo-dev] trouble with make_desktop_entry
  2005-08-29  1:42 [gentoo-dev] trouble with make_desktop_entry Nick Rout
@ 2005-08-29  1:54 ` Mike Frysinger
  2005-08-29  2:19   ` Nick Rout
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2005-08-29  1:54 UTC (permalink / raw
  To: gentoo-dev

On Sunday 28 August 2005 09:42 pm, Nick Rout wrote:
> 1. the resulting desktop file is called laby-laby.desktop rather than
> just laby.desktop

the name doesnt matter just ignore it

> 2. the "Comment" in the desktop file says "Comment=Based on the eutils
> eclass"

your ebuild is using 'inherit' incorrectly
-mike
-- 
gentoo-dev@gentoo.org mailing list



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

* Re: [gentoo-dev] trouble with make_desktop_entry
  2005-08-29  1:54 ` Mike Frysinger
@ 2005-08-29  2:19   ` Nick Rout
  0 siblings, 0 replies; 3+ messages in thread
From: Nick Rout @ 2005-08-29  2:19 UTC (permalink / raw
  To: gentoo-dev


On Sun, 28 Aug 2005 21:54:41 -0400
Mike Frysinger wrote:

> On Sunday 28 August 2005 09:42 pm, Nick Rout wrote:
> > 1. the resulting desktop file is called laby-laby.desktop rather than
> > just laby.desktop
> 
> the name doesnt matter just ignore it

OK

> 
> > 2. the "Comment" in the desktop file says "Comment=Based on the eutils
> > eclass"
> 
> your ebuild is using 'inherit' incorrectly

Got you, in fact I had the eclasses howto (http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=2)
open as I got your message and see that "The contents of the eclass will be sourced at this point."

All makes sense now, I moved the inherit line to the top (below the header)
and all is fine.

Thanks for your help. ebuilds look easyish when you first look at them,
but actually writing even a small one requires a lot of learning. Like a
lot of code, easier to muddle your way through "what this file does"
than "make one yourself".

Thanks for continuing to make the system so powerful boys and girls.

> -mike
> -- 
> gentoo-dev@gentoo.org mailing list

-- 
Nick Rout <nick@rout.co.nz>

-- 
gentoo-dev@gentoo.org mailing list



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

end of thread, other threads:[~2005-08-29  2:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-29  1:42 [gentoo-dev] trouble with make_desktop_entry Nick Rout
2005-08-29  1:54 ` Mike Frysinger
2005-08-29  2:19   ` Nick Rout

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