GNOME Bugzilla – Bug 157877
update-desktop-database doesn't handle duplicate entries
Last modified: 2006-04-19 02:40:51 UTC
# cat /usr/share/applications/test.desktop [Desktop Entry] [Desktop Entry] # ./desktop-file-validate /usr/share/applications/test.desktop /usr/share/applications/test.desktop: parse error: Two [Desktop Entry] or [KDE Desktop Entry] sections seen # ./update-desktop-database ** (process:26327): CRITICAL **: egg_desktop_entries_add_group: assertion `egg_desktop_entries_lookup_group (entries, group_name) == NULL' failed desktop-file-validate detects the problem but update-desktop-database only displays this ...
This is Debian bug <http://bugs.debian.org/298668>.
Bug 319987 has a patch to move update-desktop-database to GKeyFile, and we should definitely go that route. Unfortunately, GKeyFile has the same bug. Reassigning to glib.
2006-04-18 Matthias Clasen <mclasen@redhat.com> * glib/gkeyfile.c (g_key_file_add_group): Accept duplicate groups. (#157877, Sebastien Bacher) * tests/keyfile-test.c: Add tests for duplicate key and duplicate group handling.