app: Don't abort if a .desktop file has no Exec= key

Seen in the wild in nautilus-pastebin-configurator.desktop.
This commit is contained in:
Colin Walters 2011-09-19 14:07:13 -04:00
parent 4352cc231e
commit 37726a4cb6

View File

@ -1171,6 +1171,9 @@ trim_exec_line (const char *str)
{
const char *start, *end, *pos;
if (str == NULL)
return NULL;
end = strchr (str, ' ');
if (end == NULL)
end = str + strlen (str);