scrcpy-appimage/AppRun
vignedev 462905e056
fix: pass optional arguments to scrcpy (#3)
In its current state, no arguments were passed to `scrcpy`, so arguments such as `--turn-screen-off` etc. were not working.
2021-01-18 12:58:45 +03:00

11 lines
378 B
Bash
Executable file

#!/bin/sh
# Export APPRUN if running from an extracted image
self="$(readlink -f -- $0)"
here="${self%/*}"
APPDIR="${APPDIR:-${here}}"
export ADB="${APPDIR}/usr/bin/adb"
export SCRCPY_SERVER_PATH="${APPDIR}/usr/local/share/scrcpy/scrcpy-server"
export PATH="${APPDIR}/usr/bin:${PATH}"
export LD_LIBRARY_PATH="${APPDIR}/usr/lib:${LD_LIBRARY_PATH}"
${APPDIR}/usr/bin/scrcpy "$@"