From 2eb2121a8ba29ba3e1bb712a080826878024922f Mon Sep 17 00:00:00 2001 From: Victor Fusco <1221933+vfusco@users.noreply.github.com> Date: Tue, 21 Nov 2023 10:13:12 -0300 Subject: [PATCH] feat!: look for remote-cartesi-machine in PATH --- src/server-manager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server-manager.cpp b/src/server-manager.cpp index 912aad5..a61088a 100644 --- a/src/server-manager.cpp +++ b/src/server-manager.cpp @@ -3360,8 +3360,7 @@ int main(int argc, char *argv[]) try { init_logger(); handler_context hctx{}; - std::filesystem::path remote_cartesi_machine_path = - boost::dll::program_location().replace_filename("remote-cartesi-machine"); + std::filesystem::path remote_cartesi_machine_path = boost::process::search_path("remote-cartesi-machine").string(); if (!std::filesystem::exists(remote_cartesi_machine_path)) { remote_cartesi_machine_path = "/usr/bin/remote-cartesi-machine"; if (!std::filesystem::exists(remote_cartesi_machine_path)) {