Supporting mime types in desktop actions

Jerome Leclanche adys.wh at gmail.com
Tue Apr 3 10:40:04 PDT 2012


Writing the intents spec, I found out that according to the desktop entry
spec:
http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
Desktop Actions do not support a MimeType key. Is there a solid reason why?

My use case:
I have an image viewer and editor which supports viewing jpg and png,
however it can only *edit* png files. The "Edit" action would then only
support image/png while the main entry would support image/jpeg and
image/png.

One of the issues raised by supporting it is associating a mime type to an
action (rather than a desktop file altogether).
I propose the following syntax for mimeapps.list

image/jpeg=myapp.desktop;
image/png=myapp.desktop;myapp.desktop[Edit];

In brackets would be the name of the desktop action as specified by the
[Desktop Action Edit]. Possibly going even further, in the name could be
the entire section, eg [Desktop Action Edit], that way it may support
possible extensions to the spec though I find that a little verbose.

Thoughts?

J. Leclanche
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xdg/attachments/20120403/5f068e53/attachment.htm>


More information about the xdg mailing list