From 6fc8d1bb9feb3d89247e69c161cec070cdd06a39 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 24 Nov 2014 01:01:33 +0100 Subject: [PATCH] system/helpers.cpp: add more possible exexutable paths --- src/system/helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/helpers.cpp b/src/system/helpers.cpp index b8dff1eec..20b0496cc 100644 --- a/src/system/helpers.cpp +++ b/src/system/helpers.cpp @@ -340,7 +340,7 @@ std::string find_executable(const char *name) if (tmpPath) path = strdupa(tmpPath); else - path = strdupa("/bin:/usr/bin:/sbin:/usr/sbin"); + path = strdupa("/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin"); if (name[0] == '/') { /* full path given */ if (!access(name, X_OK) && !stat(name, &s) && S_ISREG(s.st_mode)) return std::string(name);