desktop-file-install for all desktop files?

Toshio Kuratomi a.badger at gmail.com
Sun Dec 24 04:17:42 UTC 2006


On Sat, 2006-12-23 at 04:59 -0600, Callum Lerwick wrote:
> On Fri, 2006-12-22 at 15:03 -0800, Fernando Lopez-Lezcano wrote:
> > On Sat, 2006-12-23 at 00:07 +0200, Ville Skyttä wrote:
> > > On Fri, 2006-12-22 at 13:46 -0800, Fernando Lopez-Lezcano wrote:
> > > 
> > > > One (perhaps) very minor point about desktop files. Before packaging for
> > > > fe I used to create the .desktop file with a cat << EOF statement in the
> > > > spec file. Now I'm using a separate desktop file as suggested. The thing
> > > > I can't (easily) do that I was doing before was to include the full path
> > > > of the executable by using a %{_bindir}/name statement in the inline
> > > > desktop file.
> > > 
> > > If that's what one wants, it's only a sed oneliner away, so it's not
> > > exactly that hard either.
> > 
> > Yeah, I agree. I don't know what's the original rationale for not doing
> > an inline and forcing packages to have an extra file...
> 
> I do believe I was the one who told you to change it. Admittedly, the
> main reason was "When in doubt, do what the packaging guideline example
> does." Though nothing explicitly says "here documents are bad", the
> ability to use macros is arguably useful, but once you start including
> stuff like init.d scripts as here documents, as I've seen done, the
> stacked quoting needed to do so gets really, really ugly and
> unmaintainable.
> 
> One possible reason to keep it separate is, if you use a here document,
> the timestamp on the file changes every build, thus builds aren't
> exactly reproducible.
> 
> I dare say the packaging committee should formally clarify this issue.

I'm not speaking with my packaging committee hat on here but one reason
to use a file is so the file can be sent upstream.

If the package in question uses autotools, there's some pretty standard
ways to use automake's macros to generate the proper .desktop file (with
proper paths, etc.)

-Toshio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-extras-list/attachments/20061223/6b208d46/attachment.sig>


More information about the fedora-extras-list mailing list