desktop-entry-spec: Add an optional Keywords key

Shaun McCance shaunm at gnome.org
Fri Dec 2 06:29:28 PST 2011


On Fri, 2011-12-02 at 14:18 +0100, Vincent Untz wrote:
> Le vendredi 02 décembre 2011, à 13:53 +0100, Florian Müllner a écrit :
> > On vie, 2011-12-02 at 12:43 +0000, Simon McVittie wrote:
> > > On Fri, 02 Dec 2011 at 12:35:09 +0000, Peter Brett wrote:
> > > > I just checked -- the Trinity DE (forked from KDE3) is still using the
> > > > "Keywords" key (and not "X-KDE-Keywords").  For example:
> > > > 
> > > > http://git.trinitydesktop.org/cgit/tdebase/tree/kcontrol/input/mouse.desktop
> > > > 
> > > > So yes, this might be a showstopper...
> > > 
> > > ... although mouse.desktop does seem to have keywords broadly compatible with
> > > the GNOME proposal (except that they're comma-separated).
> > 
> > Yes, that was my impression from looking at other examples as well. I
> > very much favor semi-colons as separator (as that's what we use in
> > Categories and MimeTypes), but I'd be fine with allowing both options.
> 
> Yeah, we really want semi-colons as it's a list.

Honestly, if I were writing an implementation, I'd split on non-word,
non-whitespace characters anyway. This would be the only place where
a list is used on a localestring key. Translators won't read the spec
and will sometimes get the syntax wrong. Just look at the link Peter
shared above. See Keywords[fa]. Those commas aren't U+002C.

--
Shaun




More information about the xdg mailing list