Add scrcpy-console.desktop
Add a launcher which opens a terminal, and keep it open in case of errors (so that the user has time to read error messages). The behavior is the same as scrcpy-console.bat on Windows. PR #3351 <https://github.com/Genymobile/scrcpy/pull/3351>
This commit is contained in:
parent
a2a22f497f
commit
e5e210506f
2 changed files with 15 additions and 0 deletions
13
app/data/scrcpy-console.desktop
Normal file
13
app/data/scrcpy-console.desktop
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=scrcpy (console)
|
||||||
|
GenericName=Android Remote Control
|
||||||
|
Comment=Display and control your Android device
|
||||||
|
# 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
|
||||||
|
# environment correctly initialized.
|
||||||
|
Exec=/bin/bash --norc --noprofile -i -c '"$SHELL" -i -c scrcpy || read -p "Press any key to quit..."'
|
||||||
|
Icon=scrcpy
|
||||||
|
Terminal=true
|
||||||
|
Type=Application
|
||||||
|
Categories=Utility;RemoteAccess;
|
||||||
|
StartupNotify=false
|
|
@ -240,6 +240,8 @@ if host_machine.system() == 'linux'
|
||||||
# Install a launcher (ex: /usr/local/share/applications/scrcpy.desktop)
|
# Install a launcher (ex: /usr/local/share/applications/scrcpy.desktop)
|
||||||
install_data('data/scrcpy.desktop',
|
install_data('data/scrcpy.desktop',
|
||||||
install_dir: join_paths(datadir, 'applications'))
|
install_dir: join_paths(datadir, 'applications'))
|
||||||
|
install_data('data/scrcpy-console.desktop',
|
||||||
|
install_dir: join_paths(datadir, 'applications'))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue