osx: add right MacPorts paths to our bundle $PATH

also add another path for homebrew.
This commit is contained in:
Akemi 2017-10-07 22:18:22 +02:00
parent 2c046c48ec
commit 318e2e53f0
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}