Ignore an empty Path value

svn path=/trunk/; revision=7492
This commit is contained in:
Matthias Clasen 2008-09-15 16:26:38 +00:00
parent f634171ec5
commit cdded60e29
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2008-09-15 Matthias Clasen <mclasen@redhat.com>
Bug 552352 g_app_info_launch doesn't work if "Path" key in .desktop
file is empty
* gdesktopappinfo.c (g_desktop_app_info_new_from_keyfile): Ignore
an empty Path value.
2008-09-15 Matthias Clasen <mclasen@redhat.com>
Bug 551681 g_content_type_guess() too naive with filenames

View File

@ -272,6 +272,12 @@ g_desktop_app_info_new_from_keyfile (GKeyFile *key_file)
if (info->exec)
info->binary = binary_from_exec (info->exec);
if (info->path && info->path[0] == '\0')
{
g_free (info->path);
info->path = NULL:
}
return info;
}