[racket-dev] ".desktop" files (for GUI apps on Unix)

From: Laurent (laurent.orseau at gmail.com)
Date: Mon Aug 12 05:09:02 EDT 2013

Thank you very much!

On Sat, Aug 10, 2013 at 8:54 PM, Matthew Flatt <mflatt at cs.utah.edu> wrote:

> I've added support for ".desktop" files for GUI launchers on Unix. When
> an "info.rkt" file specifies a launcher for "<name>.rkt", then if
> "<name>.desktop" exists, "<name>.desktop" is used as the initial
> content of the executable's ".desktop" file; "Exec" and "Icon" entries
> are added automatically to the end. A "<name>.png" or "<name>.ico" file
> provides the ".desktop" file's icon.
> For an in-place installation, installation-scoped ".desktop" files go
> into "share/applications", and they use relative paths for "Exec" and
> "Icon". Relative paths are not actually supported in ".desktop" files,
> so the ".desktop" files are essentially templates for creating useful
> ".desktop" files. (Relative paths are used, even though they are not
> supported in ".desktop" files, because an in-place installation is
> meant to have no absolute paths.)
> For a Unix-style installation, then installation-scoped ".desktop"
> files have full paths. The destination for ".desktop" files can be
> adjusted with the `--appsdir' flag to `configure' (or by an end user
> when installing a distribution). The default destination is
> "${prefix}/share/applications", which means that ".desktop" files to
> the usual system-wide place when "${prefix}" is "/usr".
> Finally, if a package that provides an application is installed in user
> scope, then the generated ".desktop" file in
> "~/.racket/<version>/share/applications" uses full paths, so it should
> work as expected.
> _________________________
>   Racket Developers list:
>   http://lists.racket-lang.org/dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20130812/2e97cccf/attachment.html>

Posted on the dev mailing list.