diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-10-01 15:40:29 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-10-01 15:40:29 +0000 |
commit | ab638399389c4d5980d2287a53e593200bbf891c (patch) | |
tree | 8190072941eba5883157e62ea5ca61478ba57998 /gtk2_ardour/main.cc | |
parent | 4fbc888a82ec04c3bb023b4f48016cc1a9c6ed03 (diff) |
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
Diffstat (limited to 'gtk2_ardour/main.cc')
-rw-r--r-- | gtk2_ardour/main.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc index ee3152935a..8309c13c4c 100644 --- a/gtk2_ardour/main.cc +++ b/gtk2_ardour/main.cc @@ -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"; |