-
- 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";
-
- setenv ("ARDOUR_CONTROL_SURFACE_PATH", path.c_str(), 1);
-
- cstr = getenv ("ARDOUR_PANNER_PATH");
- if (cstr) {
- path = cstr;
- path += ':';
- } else {
- path = "";
- }
- path += dir_path;
- path += "/lib/panners";
-
- setenv ("ARDOUR_PANNER_PATH", path.c_str(), 1);