Hum, it is very likely that one of your .desktop files have lost it's first 
line:
[Desktop Entry]
causing g_key_file_get_start_group (keyfile) to return NULL.

The previously posted code suppose there is always a first group (that is a 
[section] in the .desktop file) which is plain wrong.
The could should be something similar to:
  if (start_group=g_key_file_get_start_group (keyfile) != NULL)
    mime_types = g_key_file_get_string_list (keyfile,
                                           start_group,
                                           "MimeType", NULL, &load_error);
  else /* Warning! your file ... have no [Desktop Entry] at the begginning */

or something similar (I never programmed GLib code, so I'll let
developer write some good code).

So Bill, it is not necessary to post info, but it would not be bad if
you do.

I'll mark this as affecting Hardy too, and confirm the bug now.

** Changed in: desktop-file-utils (Ubuntu)
       Status: Incomplete => Confirmed

-- 
update-desktop-database segfault
https://bugs.launchpad.net/bugs/59392
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to