From e09ca364443a8804b37a8df4d47957df554c7d87 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 22 Jul 2015 07:21:12 +0200 Subject: osx: app bundle depends on working directory Tested-by: Ryan Spicer (@alterscape) --- macosx/opentrack.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/macosx/opentrack.sh b/macosx/opentrack.sh index 62ad01a5..74a911e2 100755 --- a/macosx/opentrack.sh +++ b/macosx/opentrack.sh @@ -1,4 +1,6 @@ #!/bin/sh -dir="$(dirname -- "$0")" -exec "$dir"/opentrack.bin -platformpluginpath "$dir" "$@" +cd -- "$(dirname -- "$0")" && +exec ./opentrack.bin -platformpluginpath "$(pwd)" "$@" + +exit 1 -- cgit v1.2.3