summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/dialogs/drun.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/dialogs/drun.c b/source/dialogs/drun.c
index 961b0e2f..9daee520 100644
--- a/source/dialogs/drun.c
+++ b/source/dialogs/drun.c
@@ -267,7 +267,12 @@ static gboolean read_desktop_file ( DRunModePrivateData *pd, const char *root, c
}
GKeyFile *kf = g_key_file_new ();
GError *error = NULL;
- g_key_file_load_from_file ( kf, path, 0, &error );
+ gboolean res = g_key_file_load_from_file ( kf, path, 0, &error );
+ if ( !res && error == NULL) {
+ g_debug ( "Failed to parse desktop file: %s because: unknown.", path );
+ g_key_file_free ( kf );
+ return FALSE;
+ }
// If error, skip to next entry
if ( error != NULL ) {
g_debug ( "Failed to parse desktop file: %s because: %s", path, error->message );