On Tuesday 03 April 2012 18:40:04 Jerome Leclanche wrote: > Writing the intents spec, I found out that according to the desktop entry > spec: > http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-lates > t.html Desktop Actions do not support a MimeType key. Is there a solid > reason why?
I can't think of another reason than "the need for it never popped up before". > 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]; OK, but this also needs a fix in the desktop entry spec, right? For the case where the developer already knows in the first place that the app can only edit PNGs. -- David Faure, [email protected], http://www.davidfaure.fr Sponsored by Nokia to work on KDE, incl. KDE Frameworks 5 _______________________________________________ xdg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xdg
