<br><div class="gmail_quote">On Sat, May 19, 2012 at 12:06 PM, David Faure <span dir="ltr"><<a href="mailto:faure@kde.org" target="_blank">faure@kde.org</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>
<br>
</div></div>There's no code in Qt yet, at this point it would be<br>
kdelibs/kded/kmimeassociations.cpp<br>
in git://<a href="http://anongit.kde.org/kdelibs" target="_blank">anongit.kde.org/kdelibs</a></blockquote><div><br></div><div>Heads up: There will be code in Qt in 5.0.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<div><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>
</div>Yep, the KDE implementation will just output a warning saying<br>
KMimeAssociations::parseAddedAssociations: ".../mimeapps.list" specifies<br>
unknown service "myapp.desktop[Edit]" in "Added Associations".<br>
<br>
But that's for mimeapps.list. I'm not sure what the suggested change for<br>
application .desktop files actually is. Ah, we're not talking about changing<br>
the way apps are associated with mimetypes, only about "desktop actions", i.e.<br>
typically contextual menu stuff? I wonder how the GUI is supposed to look like,<br>
to distinguish Open from Edit?<br></blockquote><div><br></div><div>I'm not sure what you mean. My proposal only defines mime types an action can be used *for*, nothing else.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I'm confused over all, because mimeapps.list is about application desktop<br>
files, not just about desktop files that define desktop actions. So, what should<br>
happen when writing image/png=myapp.desktop[Edit];<br>
and myapp.desktop simply says Exec=gimp ? Nothing new, right?<br></blockquote><div><br></div><div>Right. When looking at an image/png file, xdg-open will see myapp.desktop[Edit], go in myapp.desktop and look for a [Desktop Action Edit] section. If it doesn't find it, we *could* add a fallback to the simple Desktop Entry (and a warning I guess).</div>
<div><br></div><div>How does it become "just about desktop files that define desktop actions", though? Desktop files without DAs are still recognized as before. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><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>
</div><div><div>_______________________________________________<br>
xdg mailing list<br>
<a href="mailto:xdg@lists.freedesktop.org" target="_blank">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>
</div></div></blockquote></div><br>