Gentoo Archives: gentoo-dev

From: Thomas de Grenier de Latour <degrenier@×××××××××××.fr>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] make_desktop_entry in eutils.eclass
Date: Thu, 01 Feb 2007 07:52:32
Message-Id: 20070201084849.1237d23f@eusebe
In Reply to: Re: [gentoo-dev] make_desktop_entry in eutils.eclass by Mike Frysinger
1 On Wed, 31 Jan 2007 23:30:53 -0500, Mike Frysinger <vapier@g.o>
2 wrote:
3
4 > about the only thing that'd work is an additional parameter called
5 > "cruft" that'd be passed unfiltered into the .desktop file
6
7 You can also imagine a "-v" switch, which would make this function print
8 the full path (with its $D prefix) of the file.desktop it has created.
9 This way, people could do:
10
11 src_install() {
12 ...
13 local desktop_file=$(make_desktop_entry -v ...) || die
14 echo "MimeType=..." >> "${desktop_file}"
15 ...
16 }
17
18 I don't say this solution is better than the "cruft" parameter though,
19 it's really a matter of taste.
20
21 --
22 TGL.
23 --
24 gentoo-dev@g.o mailing list

Replies