Supporting desktop actions in actions cache/actions list files. Syntax RFC
Jerome Leclanche
adys.wh at gmail.com
Thu Mar 27 15:17:01 PDT 2014
Anyone has any thoughts on this?
J. Leclanche
On Wed, Jan 15, 2014 at 6:03 PM, Jerome Leclanche <adys.wh at gmail.com> wrote:
> Hi list
>
> I mentioned in my email about intents that we need to be able to bind
> Desktop Actions to mime types (and potentially intents). I'm going to
> implement support for this next in my lib and I wanted to ask opinions
> about syntax.
>
> This is an example of a registered mime action:
>
> [Added Associations]
> image/png=foo.desktop;bar.desktop;
>
> Assuming foo.desktop has a "Desktop Action Bar", registering a mime
> type in the desktop action involves caching it (and being able to
> associate it as well), which in turn needs to be identified directly
> while remaining backwards-compatible with current implementations.
>
> All current implementations I tested will simply ignore the value if
> it points to a non-existant desktop file, which means we can do
> something like this:
>
> image/png=foo.desktop[Gallery];bar.desktop;
>
> This is the syntax I proposed. There are alternatives:
>
> image/png=foo.desktop[Desktop Action Gallery];bar.desktop;
> image/png=foo.desktop#Gallery;bar.desktop;
> image/png=foo.desktop=Gallery;bar.desktop;
>
> etc.
>
> A single-character split might be easier to implement than brackets. Thoughts?
>
> J. Leclanche
More information about the xdg
mailing list