Really check if the desktop entry can be executed

This commit is contained in:
Pierre Pronchery 2018-01-22 04:34:16 +01:00
parent b7de776148
commit 8b0e490d7a

View File

@ -377,7 +377,7 @@ static int _settings_browse_folder(Settings * settings, Config * config,
|| string_find(p, "Settings") == NULL) || string_find(p, "Settings") == NULL)
continue; continue;
if((p = config_get(config, section, "TryExec")) != NULL 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) != 0 && errno == ENOENT)
continue; continue;
if((icon = config_get(config, section, "Icon")) == NULL) if((icon = config_get(config, section, "Icon")) == NULL)