windows fixes

This commit is contained in:
Scott E. Graves 2025-03-17 12:54:38 -05:00
parent c9281c9bcd
commit 439be1dea8

View File

@ -464,7 +464,7 @@ auto handlers::launch_process(provider_type prov, std::string_view name,
recur_mutex_lock inst_lock(inst_mtx);
if (background) {
#if defined(_WIN32)
system(fmt::format(R"(start "" /b {})", cmd_line).c_str());
system(fmt::format(R"(start "" {})", cmd_line).c_str());
#elif defined(__linux__) // defined(__linux__)
system(fmt::format("nohup {} 1>/dev/null 2>&1", cmd_line).c_str());
#else // !defined(__linux__) && !defined(_WIN32)