On Wed, 31 Jan 2007 23:30:53 -0500, Mike Frysinger <[EMAIL PROTECTED]>
wrote:

> about the only thing that'd work is an additional parameter called
> "cruft" that'd be passed unfiltered into the .desktop file

You can also imagine a "-v" switch, which would make this function print
the full path (with its $D prefix) of the file.desktop it has created.
This way, people could do:

  src_install() {
    ...
    local desktop_file=$(make_desktop_entry -v ...) || die
    echo "MimeType=..."  >> "${desktop_file}"
    ...
  }

I don't say this solution is better than the "cruft" parameter though,
it's really a matter of taste.

--
TGL.
-- 
gentoo-dev@gentoo.org mailing list

Reply via email to