mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-10 12:55:48 +01:00
tolerate an empty TryExec= line without failing; nautilus used to create
2008-04-16 Michael Meeks <michael.meeks@novell.com> * gdesktopappinfo.c (g_desktop_app_info_new_from_filename): tolerate an empty TryExec= line without failing; nautilus used to create launchers with these in previous versions. Fixes #528433 svn path=/trunk/; revision=6853
This commit is contained in:
parent
47c1c99cc0
commit
8e964bf99a
@ -1,3 +1,9 @@
|
|||||||
|
2008-04-16 Michael Meeks <michael.meeks@novell.com>
|
||||||
|
|
||||||
|
* gdesktopappinfo.c (g_desktop_app_info_new_from_filename):
|
||||||
|
tolerate an empty TryExec= line without failing; nautilus used
|
||||||
|
to create launchers with these in previous versions. Fixes #528433
|
||||||
|
|
||||||
2008-04-09 Padraig O'Briain <padraig.obriain@sun.com>
|
2008-04-09 Padraig O'Briain <padraig.obriain@sun.com>
|
||||||
|
|
||||||
* gdesktopappinfo.c: In g_app_info_create_from_commandline set comment
|
* gdesktopappinfo.c: In g_app_info_create_from_commandline set comment
|
||||||
|
@ -236,7 +236,7 @@ g_desktop_app_info_new_from_filename (const char *filename)
|
|||||||
G_KEY_FILE_DESKTOP_GROUP,
|
G_KEY_FILE_DESKTOP_GROUP,
|
||||||
G_KEY_FILE_DESKTOP_KEY_TRY_EXEC,
|
G_KEY_FILE_DESKTOP_KEY_TRY_EXEC,
|
||||||
NULL);
|
NULL);
|
||||||
if (try_exec)
|
if (try_exec && try_exec[0] != '\0')
|
||||||
{
|
{
|
||||||
char *t;
|
char *t;
|
||||||
t = g_find_program_in_path (try_exec);
|
t = g_find_program_in_path (try_exec);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user