mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:17:45 +00:00
Ladybird+WebContent: Add chrome command line and exe path passing
This commit is contained in:
parent
c94fc7d3b0
commit
dc2233ef7a
9 changed files with 54 additions and 8 deletions
|
@ -68,7 +68,11 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
if (initial_urls.is_empty())
|
||||
initial_urls.append(new_tab_page_url);
|
||||
|
||||
StringBuilder command_line_builder;
|
||||
command_line_builder.join(' ', arguments.strings);
|
||||
Ladybird::WebContentOptions web_content_options {
|
||||
.command_line = MUST(command_line_builder.to_string()),
|
||||
.executable_path = MUST(String::from_byte_string(MUST(Core::System::current_executable_path()))),
|
||||
.enable_gpu_painting = use_gpu_painting ? Ladybird::EnableGPUPainting::Yes : Ladybird::EnableGPUPainting::No,
|
||||
.use_lagom_networking = Ladybird::UseLagomNetworking::Yes,
|
||||
.wait_for_debugger = debug_web_content ? Ladybird::WaitForDebugger::Yes : Ladybird::WaitForDebugger::No,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue