OLD | NEW |
(Empty) | |
| 1 # mojo_run |
| 2 |
| 3 `mojo_run` allows you to run a Mojo shell either on the host, or on an attached |
| 4 Android device. |
| 5 |
| 6 ```sh |
| 7 mojo_run APP_URL # Run on the host. |
| 8 mojo_run APP_URL --android # Run on Android device. |
| 9 mojo_run "APP_URL APP_ARGUMENTS" # Run an app with startup arguments |
| 10 ``` |
| 11 |
| 12 Unless running within a Mojo checkout, we need to indicate the path to the shell |
| 13 binary: |
| 14 |
| 15 ```sh |
| 16 mojo_run --shell-path path/to/shell/binary APP_URL |
| 17 ``` |
| 18 |
| 19 Some applications are meant to be run embedded in a **window manager**. To run |
| 20 these, you can pass the app url using the `--embed` flag. This will run the |
| 21 window manager and pass the given url to it: |
| 22 |
| 23 ```sh |
| 24 mojo_run --embed APP_URL [--android] |
| 25 ``` |
| 26 |
| 27 By default, `mojo_run` uses https://core.mojoapps.io/kiosk_wm.mojo as the window |
| 28 manager. You can pass a different window manager url using the |
| 29 `--window-manager` flag to override this. |
OLD | NEW |