From 08572d45b820cb00e5b0df83276b5cad1688e111 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Fri, 17 Nov 2023 11:20:47 -0500 Subject: [PATCH] Documentation: Change macOS Ladybird command to launch in the foreground Also add flags to direct stdout/stderr to the terminal, and show how to pass arguments to the browser. --- Documentation/BuildInstructionsLadybird.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Documentation/BuildInstructionsLadybird.md b/Documentation/BuildInstructionsLadybird.md index 69e2b30f8b0..05fec2e2a0e 100644 --- a/Documentation/BuildInstructionsLadybird.md +++ b/Documentation/BuildInstructionsLadybird.md @@ -156,10 +156,19 @@ To automatically run in gdb: ninja -C Build/ladybird debug ``` -To run without ninja rule: +To run without ninja rule on non-macOS systems: ``` export SERENITY_SOURCE_DIR=$(realpath ../) -./Build/ladybird/bin/Ladybird # or, in macOS: open ./Build/ladybird/bin/Ladybird.app +./Build/ladybird/bin/Ladybird +``` + +To run without ninja rule on macOS: +``` +export SERENITY_SOURCE_DIR=$(realpath ../) +open -W --stdout $(tty) --stderr $(tty) ./Build/ladybird/bin/Ladybird.app + +# Or to launch with arguments: +open -W --stdout $(tty) --stderr $(tty) ./Build/ladybird/bin/Ladybird.app --args https://ladybird.dev ``` ### Debugging with CLion