summaryrefslogtreecommitdiffstats
path: root/TOOLS/osxbundle/mpv.app/Contents
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2017-07-26 19:37:36 +0200
committerAkemi <der.richter@gmx.de>2017-07-31 20:23:58 +0200
commit67506f21b81202f082dab026b92e4f3dcaddff0f (patch)
tree8d3bdd4575baee94db01f1e4abdebd31f1c8bbe5 /TOOLS/osxbundle/mpv.app/Contents
parentbda32d99d79bb059f5ddef3c47991c1e461e0f4e (diff)
downloadmpv-67506f21b81202f082dab026b92e4f3dcaddff0f.tar.bz2
mpv-67506f21b81202f082dab026b92e4f3dcaddff0f.tar.xz
osx: fix bundle for paths that need escaping
this fixes the mpv binary call in our bundle wrapper script, in the case that the path to the binary needs escaping. examples are white spaces or special chars.
Diffstat (limited to 'TOOLS/osxbundle/mpv.app/Contents')
-rwxr-xr-xTOOLS/osxbundle/mpv.app/Contents/MacOS/mpv-wrapper.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/TOOLS/osxbundle/mpv.app/Contents/MacOS/mpv-wrapper.sh b/TOOLS/osxbundle/mpv.app/Contents/MacOS/mpv-wrapper.sh
index f2658072ef..53dfb4e5c4 100755
--- a/TOOLS/osxbundle/mpv.app/Contents/MacOS/mpv-wrapper.sh
+++ b/TOOLS/osxbundle/mpv.app/Contents/MacOS/mpv-wrapper.sh
@@ -1,3 +1,4 @@
#!/bin/bash -l
export MPVBUNDLE="true"
-$SHELL -c "$(dirname "$0")/mpv --player-operation-mode=pseudo-gui"
+cd "$(dirname "$0")"
+$SHELL -c "./mpv --player-operation-mode=pseudo-gui"