Le dimanche 11 mars 2007, à 17:23 +0100, Vincent Untz a écrit : > Le mercredi 10 janvier 2007, à 08:15, Matthias Clasen a écrit : > > I recently changed the GKeyFile parser in glib to more faithfully > > implement the .ini-file format flavour described in the desktop entry > > spec. The was triggered by a bug complaining that the glib support > > wasn't symmetric, ie it could produce files that it failed to read > > in later. > > > > It turned out that the restriction of keys to A-Za-z0-9- is problematic, > > since users of GKeyFile use e.g. mime types (like application/x-foo or > > image/*) as keys. I'd like to propose that the desktop entry spec > > should be changed to allow such characters in keys (at least /_+*. , > > possibly more). Otherwise I will have to make GKeyFile deviate from > > the desktop entry spec format, to avoid breaking existing users. > > Is there any opposition to this?
Here's a patch for this - I only added "/_+*.". Any +1 or -1 for this? I'll commit the patch in a few weeks if nobody is against it. Vincent -- Les gens heureux ne sont pas pressés.
Index: desktop-entry-spec.xml =================================================================== RCS file: /cvs/menus/desktop-entry-spec/desktop-entry-spec.xml,v retrieving revision 1.31 diff -u -p -r1.31 desktop-entry-spec.xml --- desktop-entry-spec.xml 28 Apr 2007 13:56:33 -0000 1.31 +++ desktop-entry-spec.xml 28 Apr 2007 13:59:44 -0000 @@ -143,7 +143,7 @@ </para> <para> Key names must contain only the characters - <literal>A-Za-z0-9-</literal>. + <literal>A-Za-z0-9/_+*.-</literal>. </para> <para> As the case is significant, the keys <varname>Name</varname> and
_______________________________________________ xdg mailing list xdg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xdg