Binary name in the desktop file

Jasper St. Pierre jstpierre at
Sat Dec 28 14:45:51 PST 2013

It seems the use case is "I want to launch an app whose Exec line takes
filenames or URIs but don't want to pass it any arguments". In the case of
the Wine example, it's not the "env" line that's the problem, it's that the
"/ProgIDOpen" won't work unless there are more files after it. I'd perhaps
argue that you shouldn't build your apps like that, and apps have been
built this way for 12 years without major troubles, and DBus activation is
right around the corner, but maybe it's worth speccing in a "BareExec" key.

Keep in mind, this is very, very different from "get the binary name".

On Sat, Dec 28, 2013 at 5:39 PM, Thiago Macieira <thiago at> wrote:

> On quinta-feira, 26 de dezembro de 2013 21:15:49, Jerome Leclanche wrote:
> > For the exact same reason menus and any kind of application runners
> > do. That is to say, not that much. It's needed for the rarer case
> > where the application accepts different parameters/different command
> > line depending on whether it has input args or not.
> > What bothers me here is that the concensus seems to be "Nobody has
> > needed it so far", but this is clearly false; there just seems to be
> > pressure not to need it, and call applications needing it "a bug".
> Jerome, the problem is that no one here understands why you need to know
> the
> binary name.
> Forget the environment. That was a side-effect of your using the wine file
> as an
> example. Maybe we need to add EnvironmentNNN entries to set environment
> variables before launching an executable. But that's a *separate*
> discussion.
> --
> Thiago Macieira - thiago (AT) - thiago (AT)
>    Software Architect - Intel Open Source Technology Center
>       PGP/GPG: 0x6EF45358; fingerprint:
>       E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
> _______________________________________________
> xdg mailing list
> xdg at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the xdg mailing list