mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 19:25:07 +00:00
Ladybird: Remove Qt dependency from RequestServer
This requires two parts: Core::System::current_executable_path(), and passing the serenity-resource-root as an argument to the process.
This commit is contained in:
parent
bb831a27dd
commit
a1e5a6ac40
6 changed files with 17 additions and 29 deletions
|
@ -87,7 +87,7 @@ ErrorOr<NonnullRefPtr<WebView::WebContentClient>> launch_web_content_process(Web
|
|||
return new_client;
|
||||
}
|
||||
|
||||
ErrorOr<NonnullRefPtr<Protocol::RequestClient>> launch_request_server_process(ReadonlySpan<String> candidate_request_server_paths)
|
||||
ErrorOr<NonnullRefPtr<Protocol::RequestClient>> launch_request_server_process(ReadonlySpan<String> candidate_request_server_paths, StringView serenity_resource_root)
|
||||
{
|
||||
int socket_fds[2] {};
|
||||
TRY(Core::System::socketpair(AF_LOCAL, SOCK_STREAM, 0, socket_fds));
|
||||
|
@ -120,6 +120,8 @@ ErrorOr<NonnullRefPtr<Protocol::RequestClient>> launch_request_server_process(Re
|
|||
path.bytes_as_string_view(),
|
||||
"--fd-passing-socket"sv,
|
||||
fd_passing_socket_string,
|
||||
"--serenity-resource-root"sv,
|
||||
serenity_resource_root,
|
||||
};
|
||||
|
||||
result = Core::System::exec(arguments[0], arguments.span(), Core::System::SearchInPath::Yes);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue