Replaced execlp() with execl() as a path search is not required

This commit is contained in:
Scoopta 2019-09-12 14:27:39 -07:00
parent ab32b4b513
commit 323af30d68

View File

@ -417,7 +417,7 @@ static void execute_action(char* mode, const gchar* cmd) {
free(cache_path);
if(strcmp(mode, "run") == 0) {
execlp(cmd, cmd, NULL);
execl(cmd, cmd, NULL);
fprintf(stderr, "%s cannot be executed\n", cmd);
exit(errno);
} else if(strcmp(mode, "dmenu") == 0) {