From: Michael Meeks Date: Wed, 16 Apr 2008 16:48:23 +0000 (+0000) Subject: tolerate an empty TryExec= line without failing; nautilus used to create X-Git-Tag: GLIB_2_17_0~80 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e964bf99a48c6709824d804cb0bd390848bc1fa;p=platform%2Fupstream%2Fglib.git tolerate an empty TryExec= line without failing; nautilus used to create 2008-04-16 Michael Meeks * 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 --- diff --git a/gio/ChangeLog b/gio/ChangeLog index ab0ded2..2367521 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,9 @@ +2008-04-16 Michael Meeks + + * 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 * gdesktopappinfo.c: In g_app_info_create_from_commandline set comment diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c index c43f040..64e91ee 100644 --- a/gio/gdesktopappinfo.c +++ b/gio/gdesktopappinfo.c @@ -236,7 +236,7 @@ g_desktop_app_info_new_from_filename (const char *filename) G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_TRY_EXEC, NULL); - if (try_exec) + if (try_exec && try_exec[0] != '\0') { char *t; t = g_find_program_in_path (try_exec);