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:
Paul Davis 2007-10-01 15:40:29 +00:00
parent 4fbc888a82
commit ab63839938

View file

@ -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";