mirror of https://github.com/mpv-player/mpv
osx: add right MacPorts paths to our bundle $PATH
also add another path for homebrew.
This commit is contained in:
parent
2c046c48ec
commit
318e2e53f0
|
@ -266,8 +266,9 @@ static void setup_bundle(int *argc, char *argv[])
|
|||
NSString *path_new = [NSString stringWithFormat:@"%@:%@:%@:%@",
|
||||
path_bundle,
|
||||
@"/usr/local/bin",
|
||||
@"/usr/opt/bin",
|
||||
@"/usr/opt/local/bin"];
|
||||
@"/usr/local/sbin",
|
||||
@"/opt/local/bin",
|
||||
@"/opt/local/sbin"];
|
||||
setenv("PATH", [path_new UTF8String], 1);
|
||||
setenv("MPVBUNDLE", "true", 1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue