<div class="gmail_quote">On Thu, Apr 5, 2012 at 7:33 AM, David Faure <span dir="ltr"><<a href="mailto:faure@kde.org">faure@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tuesday 03 April 2012 18:40:04 Jerome Leclanche wrote:<br>
> Writing the intents spec, I found out that according to the desktop entry<br>
> spec:<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>
</div>> 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 before".<br>
<div class="im"><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 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>
</div>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 the app<br>
can only edit PNGs.<br></blockquote><div><br></div><div>Not sure I understand what you mean. But yes, the desktop entry spec would need an update... The MimeType key needs to be added to Table 3. Action Specific Keys. I also propose updating the example desktop entry file to display that behaviour.</div>
<div>The syntax itself for mimeapps.list would not require an update as it's just a "list of strings", although I don't think mimeapps.list actually has a spec anywhere.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><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>
</font></span></blockquote></div><br clear="all">J. Leclanche<br><div><br></div>