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 Sep 9, 2022
1 parent 51a1762 commit a2a22f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/data/scrcpy.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
Name=scrcpy
GenericName=Android Remote Control
Comment=Display and control your Android device
Exec=scrcpy
# 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/sh -c '"$SHELL" -i -c scrcpy'
Icon=scrcpy
Terminal=false
Type=Application
Expand Down

0 comments on commit a2a22f4

Please sign in to comment.