Commit cdded60e authored by Matthias Clasen's avatar Matthias Clasen

Ignore an empty Path value

svn path=/trunk/; revision=7492
parent f634171e
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
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment