GNOME Bugzilla – Bug 403728
Legacy INI interface for key-value file parser
Last modified: 2018-02-02 09:22:43 UTC
How would you feel about adding a legacy INI interface for the key-value file parser? http://developer.gnome.org/doc/API/2.2/glib/glib-Key-value-file-parser.html I've been discussing with gnome-volume-manager maintainer the possibility of adding support for parsing autorun.ini files. There's a working patch, but Jeffrey would prefer if we could use the file parser in glib for that. See: http://bugzilla.gnome.org/show_bug.cgi?id=397796 However, it doesn't seem to be fully .INI compliant: "This syntax is obviously inspired by the .ini files commonly met on Windows, but there are some important differences" The most important of them seems to be the last one (about case sensitiveness). I'd like to propose to add some flag that would enable legacy compatibility with Microsoft format of INI. Would you like a patch for that?
Sorry for the delay in replying. The policy for GKeyFile is that it only supports desktop file syntax which, as you’ve found, is not INI file syntax. If you want to support INI files, please use a separate INI file parser. If we added support for relaxed parsing of INI-style files, we’d become non-compliant with the desktop file specification, which could reduce interoperability with other implementations of the spec.