Supporting mime types in desktop actions
adys.wh at gmail.com
Wed Mar 20 05:48:42 PDT 2013
On Tue, Mar 19, 2013 at 1:57 PM, David Faure <faure at kde.org> wrote:
> On Friday 02 November 2012 16:58:23 Jerome Leclanche wrote:
> > The idea behind the addition is to be able to specify *extra* actions in
> > addition to the "main" one, so it would more likely look like
> > image/png=myapp.desktop;myapp.desktop[Print];myapp.desktop[Share]
> > And in a context menu it would look something like:
> > ====
> > Open
> > Copy
> > Open with... >
> > - My App (default)
> > -------
> > - Print with My App
> > - Share with My App
> This doesn't look like a solution that allows translations to other
> than English.
The Desktop Entry spec has a standard (translatable) name field for Action
keys. My example could go one of several ways:
- The Name field could be extended to have a %s-style placeholder, eg
"Share with %n"
- Or we can add a ContextualName key that can do the same (eg Name=Imager
ContextualName=Share with Imager — or ContextualName=Share with %n)
- Or that part can be left to the implementation (which would just show the
name, and have its own translations for eg %s with %s).
> What about defining multiple .desktop files? Then they can have translated
> names. Now that I see we're talking about "Open with...", standard desktop
> files would do the job just fine. You'll only need to order them correctly,
> which is currently not standard across DEs ... [/me adds yet another topic
> the next meeting]
I'm generally against multiple desktop files, they tend to become a mess
very quickly. Action keys convey the same information in a better context.
This is useful for app launchers for example (krunner/razor-runner, app
> David Faure, faure at kde.org, http://www.davidfaure.fr
> Working on KDE, in particular KDE Frameworks 5
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the xdg