Set correct working directory when running appimage

Which means relative paths now work properly
This commit is contained in:
Bart van Strien 2018-05-06 11:06:40 +02:00
parent ad4b606b5a
commit 357f70d59a

View File

@ -1,4 +1,6 @@
#!/bin/sh
# For some reason this runs from the usr subdirectory
exec ../love "$@"
APPIMAGE_DIR="${PWD}/.."
cd "$OWD"
exec "${APPIMAGE_DIR}/love" "$@"