diff options
author | David Robillard <d@drobilla.net> | 2011-01-12 00:02:25 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-01-12 00:02:25 +0000 |
commit | 66cc300a991a4bc4706fcbeae6995f436cee451a (patch) | |
tree | 48bf01e07f140b36ba74193e9a3589a0846351cf /src/main.cpp | |
parent | bff08fcbd085cf7af81cc5ac4e4edcb74bb3deb4 (diff) | |
download | patchage-66cc300a991a4bc4706fcbeae6995f436cee451a.tar.gz patchage-66cc300a991a4bc4706fcbeae6995f436cee451a.tar.bz2 patchage-66cc300a991a4bc4706fcbeae6995f436cee451a.zip |
Tweak PATH in OSX bundle so libjack can find jackd.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2828 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index a691210..abf13c9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -50,6 +50,12 @@ set_bundle_environment() const std::string pangorc_path(bundle_path + "/Resources/pangorc"); setenv("PANGO_RC_FILE", pangorc_path.c_str(), 1); + const char* path_c = getenv("PATH"); + std::string path = "/opt/local/bin"; + if (path_c) + path += std::string(":") + path_c; + setenv("PATH", path.c_str(), 1); + gtk_rc_parse((bundle_path + "/Resources/gtkrc").c_str()); } #endif |