<br><div class="gmail_quote">On Thu, Apr 19, 2012 at 8:02 AM, Vincent Untz <span dir="ltr"><<a href="mailto:vuntz@gnome.org">vuntz@gnome.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Le mercredi 18 avril 2012, à 22:50 +0100, Jerome Leclanche a écrit :<br>
<div><div class="h5">> On Thu, Apr 5, 2012 at 7:42 AM, Jerome Leclanche <<a href="mailto:adys.wh@gmail.com">adys.wh@gmail.com</a>> wrote:<br>
><br>
> > On Thu, Apr 5, 2012 at 7:33 AM, David Faure <<a href="mailto:faure@kde.org">faure@kde.org</a>> wrote:<br>
> ><br>
> >> On Tuesday 03 April 2012 18:40:04 Jerome Leclanche wrote:<br>
> >> > Writing the intents spec, I found out that according to the desktop<br>
> >> entry<br>
> >> > spec:<br>
> >> ><br>
> >> <a href="http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-lates" target="_blank">http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-lates</a><br>
> >> > t.html Desktop Actions do not support a MimeType key. Is there a solid<br>
> >> > reason why?<br>
> >><br>
> >> I can't think of another reason than "the need for it never popped up<br>
> >> before".<br>
> >><br>
> >> > My use case:<br>
> >> > I have an image viewer and editor which supports viewing jpg and png,<br>
> >> > however it can only *edit* png files. The "Edit" action would then only<br>
> >> > support image/png while the main entry would support image/jpeg and<br>
> >> > image/png.<br>
> >> ><br>
> >> > One of the issues raised by supporting it is associating a mime type to<br>
> >> an<br>
> >> > action (rather than a desktop file altogether).<br>
> >> > I propose the following syntax for mimeapps.list<br>
> >> ><br>
> >> > image/jpeg=myapp.desktop;<br>
> >> > image/png=myapp.desktop;myapp.desktop[Edit];<br>
> >><br>
> >> OK, but this also needs a fix in the desktop entry spec, right?<br>
> >> For the case where the developer already knows in the first place that<br>
> >> the app<br>
> >> can only edit PNGs.<br>
> >><br>
> ><br>
> > Not sure I understand what you mean. But yes, the desktop entry spec would<br>
> > need an update... The MimeType key needs to be added to Table 3. Action<br>
> > Specific Keys. I also propose updating the example desktop entry file to<br>
> > display that behaviour.<br>
> > The syntax itself for mimeapps.list would not require an update as it's<br>
> > just a "list of strings", although I don't think mimeapps.list actually has<br>
> > a spec anywhere.<br>
> ><br>
> ><br>
> >><br>
> >> --<br>
> >> David Faure, <a href="mailto:faure@kde.org">faure@kde.org</a>, <a href="http://www.davidfaure.fr" target="_blank">http://www.davidfaure.fr</a><br>
> >> Sponsored by Nokia to work on KDE, incl. KDE Frameworks 5<br>
> >><br>
> >><br>
> > J. Leclanche<br>
> ><br>
> ><br>
> Is there any more feedback on this? Where/how can I submit changes/get them<br>
> accepted?<br>
<br>
</div></div>The following would be nice:<br>
<br>
+ a patch for the spec (living in xdg/xdg-specs in <a href="http://git.freedesktop.org" target="_blank">git.freedesktop.org</a>)<br>
+ a patch for desktop-file-utils (to update update-desktop-database)<br>
+ possibly patches for Qt (I assume) and glib to handle the changes in<br>
the format of mimeinfo.cache/mimeapps.list<br>
<br>
It's a bit unclear to me how the old stacks will react to something<br>
like:<br>
image/png=myapp.desktop[Edit];<br>
Will they just fail gracefully?<br>
<br>
Cheers,<br>
<br>
Vincent<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Les gens heureux ne sont pas pressés.<br>
_______________________________________________<br>
xdg mailing list<br>
<a href="mailto:xdg@lists.freedesktop.org">xdg@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/xdg" target="_blank">http://lists.freedesktop.org/mailman/listinfo/xdg</a><br>
</font></span></blockquote></div><div><br></div><div>I would have to test. Most likely they would discard it (looking for a file that does not exist, or possibly ignoring an item that doesnt end in .desktop), which is what we would want them to.</div>
<div><br></div><div>I'll work on the patches, though I would love some help for the update-desktop-database patch from someone who knows the codebase. </div><br clear="all">J. Leclanche<br><br>