mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 22:25:46 +01:00
add execpath dir to PATH for bundled OSX build
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2502 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
4fbc888a82
commit
ab63839938
1 changed files with 10 additions and 0 deletions
|
|
@ -90,6 +90,16 @@ fixup_bundle_environment ()
|
|||
Glib::ustring exec_path (execpath);
|
||||
Glib::ustring dir_path = Glib::path_get_dirname (exec_path);
|
||||
Glib::ustring path;
|
||||
const char *cstr = getenv ("PATH");
|
||||
|
||||
/* ensure that we find any bundled executables (e.g. JACK) */
|
||||
|
||||
path = dir_path;
|
||||
if (cstr) {
|
||||
path += ':';
|
||||
path += cstr;
|
||||
}
|
||||
setenv ("PATH", path._cstr(), 1);
|
||||
|
||||
path = dir_path;
|
||||
path += "/../Resources";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue