- const char *cstr = getenv ("PATH");
-
- /* ensure that we find any bundled executables (e.g. JACK),
- and find them before any instances of the same name
- elsewhere in PATH
- */
-
- path = dir_path;
-
- /* JACK is often in /usr/local/bin and since Info.plist refuses to
- set PATH, we have to force this in order to discover a running
- instance of JACK ...
- */
-
- path += ':';
- path += "/usr/local/bin";
-
- if (cstr) {
- path += ':';
- path += cstr;
- }
- setenv ("PATH", path.c_str(), 1);
-
- path = dir_path;
- path += "/../Resources";
- path += dir_path;
- path += "/../Resources/Surfaces";
- path += dir_path;
- path += "/../Resources/Panners";
-
- setenv ("ARDOUR_MODULE_PATH", path.c_str(), 1);
-
- path = user_config_directory().to_string();
- path += ':';
- path += dir_path;
- path += "/../Resources/icons:";
- path += dir_path;
- path += "/../Resources/pixmaps:";
- path += dir_path;
- path += "/../Resources/share:";
- path += dir_path;
- path += "/../Resources";
-
- setenv ("ARDOUR_PATH", path.c_str(), 1);
- setenv ("ARDOUR_CONFIG_PATH", path.c_str(), 1);
-
- path = dir_path;
- path += "/../Resources";
- setenv ("ARDOUR_INSTANT_XML_PATH", path.c_str(), 1);
-
- cstr = getenv ("LADSPA_PATH");
- if (cstr) {
- path = cstr;
- path += ':';
- } else {
- path = "";
- }
- path += dir_path;
- path += "/../Plugins";
-
- setenv ("LADSPA_PATH", path.c_str(), 1);
-
- cstr = getenv ("VAMP_PATH");
- if (cstr) {
- path = cstr;
- path += ':';
- } else {
- path = "";
- }
- path += dir_path;
- path += "/../Frameworks";
-
- setenv ("VAMP_PATH", path.c_str(), 1);
-
- cstr = getenv ("ARDOUR_CONTROL_SURFACE_PATH");
- if (cstr) {
- path = cstr;
- path += ':';
- } else {
- path = "";
- }
- path += dir_path;
- path += "/../Surfaces";