From d6bf62f374038ce02f6b63d682858aac84c0b0d2 Mon Sep 17 00:00:00 2001 From: Chih-Hsuan Yen Date: Sat, 11 Dec 2021 11:47:57 +0800 Subject: [PATCH] Use shell environment to execute launcher MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make Exec= compatible with $PATH configured in .bashrc or .zshrc… PR #3351 Refs #296 Signed-off-by: Romain Vimont --- app/data/scrcpy.desktop | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/data/scrcpy.desktop b/app/data/scrcpy.desktop index 5933272d24..082b75e0f0 100644 --- a/app/data/scrcpy.desktop +++ b/app/data/scrcpy.desktop @@ -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