From 843de2fa5e16259fe8f7388013644daa3a17bbe5 Mon Sep 17 00:00:00 2001 From: Srevin Saju Date: Wed, 2 Sep 2020 17:12:06 +0300 Subject: [PATCH] Fix exec error on using AppImages in directories containing spaces --- appimage/entrypoint.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/appimage/entrypoint.sh b/appimage/entrypoint.sh index 4a15f977..3f462969 100644 --- a/appimage/entrypoint.sh +++ b/appimage/entrypoint.sh @@ -1,8 +1,8 @@ -export GUISCRCPY_SCRCPY=${APPDIR}/usr/bin/scrcpy -export GUISCRCPY_ADB=${APPDIR}/usr/bin/adb -export SCRCPY_SERVER_PATH=${APPDIR}/usr/local/share/scrcpy/scrcpy-server -export ADB=${APPDIR}/usr/bin/adb +export GUISCRCPY_SCRCPY="${APPDIR}/usr/bin/scrcpy" +export GUISCRCPY_ADB="${APPDIR}/usr/bin/adb" +export SCRCPY_SERVER_PATH="${APPDIR}/usr/local/share/scrcpy/scrcpy-server" +export ADB="${APPDIR}/usr/bin/adb" export GUISCRCPY_APPIMAGE=True -export PATH=${APPDIR}/usr/bin:${PATH} +export PATH="${APPDIR}/usr/bin:${PATH}" -{{ python-executable }} -s ${APPDIR}/opt/python{{ python-version }}/bin/guiscrcpy "$@" +"{{ python-executable }}" -s "${APPDIR}/opt/python{{ python-version }}/bin/guiscrcpy" "$@"