<div class="gmail_quote">On Thu, Apr 5, 2012 at 7:42 AM, Jerome Leclanche <span dir="ltr">&lt;<a href="mailto:adys.wh@gmail.com">adys.wh@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="gmail_quote"><div><div class="h5">On Thu, Apr 5, 2012 at 7:33 AM, David Faure <span dir="ltr">&lt;<a href="mailto:faure@kde.org" target="_blank">faure@kde.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>On Tuesday 03 April 2012 18:40:04 Jerome Leclanche wrote:<br>
&gt; Writing the intents spec, I found out that according to the desktop entry<br>
&gt; spec:<br>
&gt; <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>&gt; t.html Desktop Actions do not support a MimeType key. Is there a solid<br>
&gt; reason why?<br>
<br>
I can&#39;t think of another reason than &quot;the need for it never popped up before&quot;.<br>
<div><br>
&gt; My use case:<br>
&gt; I have an image viewer and editor which supports viewing jpg and png,<br>
&gt; however it can only *edit* png files. The &quot;Edit&quot; action would then only<br>
&gt; support image/png while the main entry would support image/jpeg and<br>
&gt; image/png.<br>
&gt;<br>
&gt; One of the issues raised by supporting it is associating a mime type to an<br>
&gt; action (rather than a desktop file altogether).<br>
&gt; I propose the following syntax for mimeapps.list<br>
&gt;<br>
&gt; image/jpeg=myapp.desktop;<br>
&gt; 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></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&#39;s just a &quot;list of strings&quot;, although I don&#39;t think mimeapps.list actually has a spec anywhere.</div><div class="im"><div> </div>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<span><font color="#888888"><br>
--<br>
David Faure, <a href="mailto:faure@kde.org" target="_blank">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></div><br clear="all">J. Leclanche<br><div><br></div>
</blockquote></div><div><br></div><div>Is there any more feedback on this? Where/how can I submit changes/get them accepted?</div><br clear="all">J. Leclanche<br>