[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to properly register a program in KDE/GNOME



Le Sun, Nov 22, 2009 at 09:40:33PM -0300, Nicolas Alvarez a écrit :
> Eric Lavarde wrote:
> > MimeType=application/x-freemind;
> > Categories=Office;
> 
> Are those semicolons supposed to be there?

Dear Nicolas,

MimeType and Categories are keys that can contain multiple values, and as such
should use a semicolon to delimitate them:

  Some keys can have multiple values. In such a case, the value of the key is
  specified as a plural: for example, string(s). The multiple values should be
  separated by a semicolon. Those keys which have several values should have a
  semicolon as the trailing character. Semicolons in these values need to be
  escaped using \;. 

  http://standards.freedesktop.org/desktop-entry-spec/1.0/ar01s03.html

In ‘http://standards.freedesktop.org/desktop-entry-spec/1.0/ar01s05.html’;,
MimeType and Categories are listed as containing ‘string(s)’.

Accordingly, the tool desktop-file-validate will report an error about the
absence of the semicolon.

Have a nice day,

-- 
Charles Plessy
Tsurumi, Kanagawa, Japan


Reply to: