# HG changeset patch # User Gabriel # Date 1348697198 -7200 # Node ID 0cdbe938b525ee5cc7a79e2a63ab3c70f1f8d61d # Parent 9063024ebc5ac64b99174e210620964ac831fd59 Be robust against desktop files without an Exec key. diff -r 9063024ebc5a -r 0cdbe938b525 src/editors.c --- a/src/editors.c Sun Sep 23 11:19:36 2012 +0200 +++ b/src/editors.c Thu Sep 27 00:06:38 2012 +0200 @@ -292,6 +292,7 @@ } editor->exec = g_key_file_get_string(key_file, DESKTOP_GROUP, "Exec", NULL); + if (!editor->exec) editor->exec = g_strdup(""); editor->menu_path = g_key_file_get_string(key_file, DESKTOP_GROUP, "X-Geeqie-Menu-Path", NULL); if (!editor->menu_path) editor->menu_path = g_strdup("EditMenu/ExternalMenu");