From 8b0e490d7a4fcdf9f05c41dd81d29cd6fd3f7ddd Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 22 Jan 2018 04:34:16 +0100 Subject: [PATCH] Really check if the desktop entry can be executed --- tools/settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/settings.c b/tools/settings.c index 3bc61d9..4d1aadb 100644 --- a/tools/settings.c +++ b/tools/settings.c @@ -377,7 +377,7 @@ static int _settings_browse_folder(Settings * settings, Config * config, || string_find(p, "Settings") == NULL) continue; if((p = config_get(config, section, "TryExec")) != NULL - && _settings_browse_folder_access(path, X_OK) + && _settings_browse_folder_access(p, X_OK) != 0 && errno == ENOENT) continue; if((icon = config_get(config, section, "Icon")) == NULL)