launch: Add support for PATH searching

This commit is contained in:
apio 2024-03-20 19:57:43 +01:00
parent eab44307f0
commit 06b8a41d2f
Signed by: apio
GPG Key ID: B8A7D06E42258954
2 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ Result<void> handle_launch_detached_message(os::IPC::ClientConnection& client)
StringView args[] = { path.view() }; StringView args[] = { path.view() };
os::Process::spawn(args[0], { args, 1 }, false); os::Process::spawn(args[0], { args, 1 }, request.search_in_path);
return {}; return {};
} }

View File

@ -25,6 +25,7 @@ namespace os
static constexpr u8 ID = LAUNCH_DETACHED_ID; static constexpr u8 ID = LAUNCH_DETACHED_ID;
IPC_STRING(command); IPC_STRING(command);
bool search_in_path { false };
}; };
} }
} }