feat(platform,daemon): isolate executable lookup and report host backends
This commit is contained in:
1 parent
105519924a
commit
9f4477b8d4
10 files changed
+93
-7
No files matched your search
@@ -92,4 +92,9 @@ resolve_confined_path(const std::filesystem::path &root, const std::filesystem::
|
||||
[[nodiscard]] bool path_is_within(const std::filesystem::path &root,
|
||||
const std::filesystem::path &path);
|
||||
|
||||
// Absolute path of the running executable (Linux: /proc/self/exe). Hosts without a supported
|
||||
// mechanism return an explicit error instead of a guessed path.
|
||||
[[nodiscard]] Void::Result::Result<std::filesystem::path, Void::Result::Error>
|
||||
current_executable_path();
|
||||
|
||||
} // namespace Void::Build::Platform
|
||||
Reference in new issue
Block a user