Use --pause-on-exit from launchers
The terminal opened by scrcpy-console (.bat or .desktop) must not close if scrcpy terminates with an error, so that error messages can be read. Refs #3817 <https://github.com/Genymobile/scrcpy/pull/3817> Refs #3822 <https://github.com/Genymobile/scrcpy/pull/3822> PR #4130 <https://github.com/Genymobile/scrcpy/pull/4130>
This commit is contained in:
parent
1650b7c058
commit
1c864a88eb
@ -1,4 +1,2 @@
|
|||||||
@echo off
|
@echo off
|
||||||
scrcpy.exe %*
|
scrcpy.exe --pause-on-exit=if-error %*
|
||||||
:: if the exit code is >= 1, then pause
|
|
||||||
if errorlevel 1 pause
|
|
||||||
|
@ -5,7 +5,7 @@ Comment=Display and control your Android device
|
|||||||
# For some users, the PATH or ADB environment variables are set from the shell
|
# For some users, the PATH or ADB environment variables are set from the shell
|
||||||
# startup file, like .bashrc or .zshrc… Run an interactive shell to get
|
# startup file, like .bashrc or .zshrc… Run an interactive shell to get
|
||||||
# environment correctly initialized.
|
# environment correctly initialized.
|
||||||
Exec=/bin/bash --norc --noprofile -i -c "\"\\$SHELL\" -i -c scrcpy || read -p 'Press Enter to quit...'"
|
Exec=/bin/sh -c "\"\\$SHELL\" -i -c scrcpy --pause-on-exit=if-error"
|
||||||
Icon=scrcpy
|
Icon=scrcpy
|
||||||
Terminal=true
|
Terminal=true
|
||||||
Type=Application
|
Type=Application
|
||||||
|
Loading…
x
Reference in New Issue
Block a user