summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-12 00:02:25 +0000
committerDavid Robillard <d@drobilla.net>2011-01-12 00:02:25 +0000
commit66cc300a991a4bc4706fcbeae6995f436cee451a (patch)
tree48bf01e07f140b36ba74193e9a3589a0846351cf /src/main.cpp
parentbff08fcbd085cf7af81cc5ac4e4edcb74bb3deb4 (diff)
downloadpatchage-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.cpp6
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