From a5b97104cff358beebdb7ed1e96f7ab441295afa Mon Sep 17 00:00:00 2001 From: Akemi Date: Wed, 1 Feb 2017 21:42:58 +0100 Subject: osx: improve bundle handling we have two problems here. first when mpv is started from the bundle it uses its own environment variables and possibly can't find for example the youtube-dl binary for our youtube-dl hook. second we couldn't reliable determine when mpv was started from the bundle, which led to the pseudo-gui usage even when the binary was invoked from a shell. to prevent this we will wrap the bundle binary with a shell script, which will only be called when we start mpv from the bundle. this way we can get the same environment variables, like $PATH, for our bundle and additional we can set the pseudo-gui only when started through this script. it is also possible to detect the bundle usage properly and accurately through the usage of another environment var. Fixes #2061 --- TOOLS/osxbundle/mpv.app/Contents/Info.plist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'TOOLS/osxbundle/mpv.app/Contents/Info.plist') diff --git a/TOOLS/osxbundle/mpv.app/Contents/Info.plist b/TOOLS/osxbundle/mpv.app/Contents/Info.plist index c134abb173..11e34c4548 100644 --- a/TOOLS/osxbundle/mpv.app/Contents/Info.plist +++ b/TOOLS/osxbundle/mpv.app/Contents/Info.plist @@ -173,7 +173,7 @@ CFBundleExecutable - mpv + mpv-wrapper.sh CFBundleIconFile icon CFBundleIdentifier -- cgit v1.2.3