mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-18 05:18:47 +02:00
Ignore an empty Path value
svn path=/trunk/; revision=7492
This commit is contained in:
parent
f634171ec5
commit
cdded60e29
@ -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>
|
2008-09-15 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
Bug 551681 – g_content_type_guess() too naive with filenames
|
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)
|
if (info->exec)
|
||||||
info->binary = binary_from_exec (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;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user