mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-22 04:25:01 +00:00
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.
This commit is contained in:
parent
bdc32bd79b
commit
65b7d75b7b
2 changed files with 14 additions and 0 deletions
12
app/data/scrcpy-console.desktop
Normal file
12
app/data/scrcpy-console.desktop
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Desktop Entry]
|
||||
Name=scrcpy (console)
|
||||
GenericName=Android Remote Control
|
||||
Comment=Display and control your Android device
|
||||
# For some users, `adb` is not in default $PATH but the one configured in .bashrc/ or .zshrc/...
|
||||
# Run an interactive shell to get the same path used in terminals.
|
||||
Exec=/bin/bash -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_data('data/scrcpy.desktop',
|
||||
install_dir: join_paths(datadir, 'applications'))
|
||||
install_data('data/scrcpy-console.desktop',
|
||||
install_dir: join_paths(datadir, 'applications'))
|
||||
endif
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue