Binary name in the desktop file
Jasper St. Pierre
jstpierre at mecheye.net
Thu Dec 26 12:59:44 PST 2013
On Thu, Dec 26, 2013 at 3:54 PM, Jerome Leclanche <adys.wh at gmail.com> wrote:
> I never implied the spec was wrong...
>
> I seem to be talking into the wind here, it's quite frustrating, so
> I'm just going to leave this alone. If someone wishes to go forward
> with adding an Environment key to the desktop file though that still
> seems like an excellent idea.
>
> J. Leclanche
>
I'm still genuinely curious why you think you need the binary name for
intents.
> On Thu, Dec 26, 2013 at 9:06 PM, Dominique Michel
> <dominique.michel at vtxnet.ch> wrote:
> > Le Thu, 26 Dec 2013 20:37:56 +0000,
> > Jerome Leclanche <adys.wh at gmail.com> a écrit :
> >
> >> On Thu, Dec 26, 2013 at 8:33 PM, Liam R E Quin <liam at holoweb.net>
> >> wrote:
> >> > On Thu, 2013-12-26 at 10:56 +0000, Jerome Leclanche wrote:
> >> >> I'd really like to be able to get the binary name from desktop
> >> >> files
> >> >
> >> > What if there's no binary, e.g. a shell script or a python-based
> >> > program with a UI?
> >> >
> >> > What about a Java program,
> >> > java -cp .... -jar ...
> >> > ?
> >> > If you just run "java" you won't see much.
> >> >
> >> >> (eg a way to "start without any argument"). Current implementations
> >> >> rely on getting the first word of the Exec key OR replace %f etc by
> >> >> nothing, but that fails for things such as these:
> >> >>
> >> >> Exec=env WINEPREFIX="/home/adys/.local/share/wineprefixes/default"
> >> >> wine start /ProgIDOpen chm.file %f
> >> >
> >> > What exactly fails here?
> >> >
> >> > Like others I've no idea about "runners" or "intents", but maybe
> >> > that's because I don't run KDE? I'm not sure that a cross-desktop
> >> > environment facility should hard-code environment-specific ideas.
> >> > But if it's a concept useful elsewhere then it may make sense.
> >> >
> >> > I *think* you might really be asking for a way to run a program
> >> > without opening a specific file, is that right? It's not about
> >> > having no arguments such as "-c"...
> >> >
> >> > If so, that might be a good idea, and should indeed be a separate
> >> > entry. But doesn't the menu entry already give you this?
> >>
> >> See a couple of posts above; the menu entry suffers from the same
> >> issue. Either way, I can just do the same thing as menus/launchers do
> >> without arguments but as I said, some apps will still be broken.
> >> I dislike the philosophy of "it's on the app developer to fix it";
> >> this is a pretty obvious shortcoming of the spec.
> >
> > Not sure. The spec said the Exec key must be an executable followed by
> > arguments. In your case, env is the executable, and all that follow are
> > arguments to that executable. At least according to 'man env'.
> >
> > That imply the spec is right, but its implementation doesn't work in
> > such cases.
> >
> > Dominique
> >
> >>
> >> >
> >> > Liam
> >> >
> >> > --
> >> > Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
> >> > Pictures from old books: http://fromoldbooks.org/
> >> > Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
> >> >
> >>
> >>
> >>
> >> J. Leclanche
> >> _______________________________________________
> >> xdg mailing list
> >> xdg at lists.freedesktop.org
> >> http://lists.freedesktop.org/mailman/listinfo/xdg
> > _______________________________________________
> > xdg mailing list
> > xdg at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/xdg
> _______________________________________________
> xdg mailing list
> xdg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xdg
>
--
Jasper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xdg/attachments/20131226/d2f007c3/attachment-0001.html>
More information about the xdg
mailing list