summaryrefslogtreecommitdiff
path: root/libs/ardour/search_paths.cc
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2014-03-10 14:10:04 +0000
committerJohn Emmas <johne53@tiscali.co.uk>2014-03-10 16:24:05 +0000
commit75c55b0aa0534b702ec6167f5b1aae6e637fdd69 (patch)
tree0327df7cbf41d369f487fe826845012bbc063c58 /libs/ardour/search_paths.cc
parent06fe0a51723aa7970347e0e2d478344ebefb084f (diff)
Transfer 'control_protocol_search_path()' into 'libs/ardour/search_paths.cc'
Diffstat (limited to 'libs/ardour/search_paths.cc')
-rw-r--r--libs/ardour/search_paths.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ardour/search_paths.cc b/libs/ardour/search_paths.cc
index 243e520776..d162706719 100644
--- a/libs/ardour/search_paths.cc
+++ b/libs/ardour/search_paths.cc
@@ -26,6 +26,7 @@
namespace {
const char * const backend_env_variable_name = "ARDOUR_BACKEND_PATH";
+ const char * const surfaces_env_variable_name = "ARDOUR_SURFACES_PATH";
} // anonymous
using namespace PBD;
@@ -43,4 +44,15 @@ backend_search_path ()
return spath;
}
+Searchpath
+control_protocol_search_path ()
+{
+ Searchpath spath(user_config_directory ());
+ spath += ardour_dll_directory ();
+ spath.add_subdirectory_to_paths (surfaces_dir_name);
+
+ spath += Searchpath(Glib::getenv(surfaces_env_variable_name));
+ return spath;
+}
+
} // namespace ARDOUR