Supporting mime types in desktop actions

Jerome Leclanche adys.wh at
Tue Jan 22 14:22:25 PST 2013

Pinging this again because mplayer2 is hitting an issue and the logical fix
requires this.

Use case: An application plays audio and video files. Audio files are
controlled from a terminal interface, video files are controlled from an
X11 interface. So when starting a video file, we want Terminal=No. When
starting an audio file, we then want Terminal=Yes.

The obvious fix is a Desktop Action Audio with Terminal=true and
This requires adding the keys Terminal and MimeType to desktop actions

J. Leclanche

On Sun, Nov 4, 2012 at 3:22 PM, Сергей Давыдов <shnatsel at> 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
> That's what Contractor does in elementary: it provides additional
> actions for mimetypes, e.g. uploading photos to Flickr or rendering
> SVGs with Inkscape. However, Contractor implemented this vi separate
> .desktop-like file for every action.
> There's no such thing as "default" Contractor action, though; the user
> is always presented a list of actions to perform.
> More info on Contractor is available from
> and
> --
> Sergey "Shnatsel" Davidoff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the xdg mailing list