From 66cc300a991a4bc4706fcbeae6995f436cee451a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 12 Jan 2011 00:02:25 +0000 Subject: 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 --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main.cpp') 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 -- cgit v1.2.1