Mention how to start a launcher in documentation

This commit is contained in:
Romain Vimont 2024-12-04 12:59:48 +01:00
parent 9555d3a537
commit bed5f45cf8

View File

@ -15,8 +15,10 @@ scrcpy --new-display=/240 # use the main display size and 240 dpi
On some devices, a launcher is available in the virtual display. On some devices, a launcher is available in the virtual display.
When no launcher is available, the virtual display is empty. In that case, you When no launcher is available (or if is explicitly disabled by
must [start an Android app](device.md#start-android-app). [`--no-vd-system-decorations`](#system-decorations)), the virtual display is
empty. In that case, you must [start an Android
app](device.md#start-android-app).
For example: For example:
@ -24,12 +26,27 @@ For example:
scrcpy --new-display=1920x1080 --start-app=org.videolan.vlc scrcpy --new-display=1920x1080 --start-app=org.videolan.vlc
``` ```
The app may itself be a launcher. For example, to run the open source [Fossify
Launcher]:
```bash
scrcpy --new-display=1920x1080 --no-vd-system-decorations --start-app=org.fossify.home
```
[Fossify Launcher]: https://f-droid.org/en/packages/org.fossify.home/
## System decorations ## System decorations
By default, virtual display system decorations are enabled. But some devices By default, virtual display system decorations are enabled. To disable them, use
might display a broken UI; `--no-vd-system-decorations`:
Use `--no-vd-system-decorations` to disable it. ```
scrcpy --new-display --no-vd-system-decorations
```
This is useful for some devices which might display a broken UI, or to disable
any default launcher UI available in virtual displays.
Note that if no app is started, no content will be rendered, so no video frame Note that if no app is started, no content will be rendered, so no video frame
will be produced at all. will be produced at all.