Skip to content

Commit

Permalink
Use shell environment to execute launcher
Browse files Browse the repository at this point in the history
Make Exec= compatible with $PATH configured in .bashrc/ or .zshrc/…

PR #3351 <#3351>
Refs #296 <#296 (comment)>

Signed-off-by: Romain Vimont <[email protected]>
  • Loading branch information
Chih-Hsuan Yen authored and rom1v committed Jun 27, 2022
1 parent 08d5a27 commit bdc32bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/data/scrcpy.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
Name=scrcpy
GenericName=Android Remote Control
Comment=Display and control your Android device
Exec=scrcpy
# 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/sh -c '"$SHELL" -i -c scrcpy'
Icon=scrcpy
Terminal=false
Type=Application
Expand Down

0 comments on commit bdc32bd

Please sign in to comment.