apprun.sh (366B)
1 #!/bin/bash 2 3 set -e 4 5 APPDIR="$(dirname "$(readlink -e "$0")")" 6 7 export LD_LIBRARY_PATH="${APPDIR}/usr/lib/:${APPDIR}/usr/lib/x86_64-linux-gnu${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}" 8 export PATH="${APPDIR}/usr/bin:${PATH}" 9 export LDFLAGS="-L${APPDIR}/usr/lib/x86_64-linux-gnu -L${APPDIR}/usr/lib" 10 11 exec "${APPDIR}/usr/bin/python3.7" -s "${APPDIR}/usr/bin/electrum" "$@"