From 06b8a41d2f6d30cb594c22737b0ce71ca2cae681 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 20 Mar 2024 19:57:43 +0100 Subject: [PATCH] launch: Add support for PATH searching --- apps/launch.cpp | 2 +- libos/include/os/ipc/Launcher.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/launch.cpp b/apps/launch.cpp index 9189e32d..3282bc7c 100644 --- a/apps/launch.cpp +++ b/apps/launch.cpp @@ -31,7 +31,7 @@ Result handle_launch_detached_message(os::IPC::ClientConnection& client) StringView args[] = { path.view() }; - os::Process::spawn(args[0], { args, 1 }, false); + os::Process::spawn(args[0], { args, 1 }, request.search_in_path); return {}; } diff --git a/libos/include/os/ipc/Launcher.h b/libos/include/os/ipc/Launcher.h index 9c21a56e..1d97269f 100644 --- a/libos/include/os/ipc/Launcher.h +++ b/libos/include/os/ipc/Launcher.h @@ -25,6 +25,7 @@ namespace os static constexpr u8 ID = LAUNCH_DETACHED_ID; IPC_STRING(command); + bool search_in_path { false }; }; } }