From 17db4f040e6887ccf7b00a005dd6c773253010fd Mon Sep 17 00:00:00 2001 From: Simon Kagstrom Date: Sat, 16 Mar 2024 16:37:04 +0100 Subject: [PATCH] mach-engine: Correct the executable path --- src/engines/mach-engine.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engines/mach-engine.cc b/src/engines/mach-engine.cc index 05bb434d..8d2d7a96 100644 --- a/src/engines/mach-engine.cc +++ b/src/engines/mach-engine.cc @@ -257,7 +257,7 @@ class MachEngine : public IEngine // Fork the process, in suspended mode auto& conf = IConfiguration::getInstance(); auto argv = conf.getArgv(); - rv = posix_spawn(&m_pid, argv[0], nullptr, &attr, (char* const*)argv, environ); + rv = posix_spawn(&m_pid, executable.c_str(), nullptr, &attr, (char* const*)argv, environ); if (rv != 0) { error("posix_spawn");