namespace ARDOUR {
-SearchPath
+Searchpath
control_protocol_search_path ()
{
- SearchPath spath (user_config_directory ());
-
+ Searchpath spath(user_config_directory ());
spath += ardour_dll_directory ();
spath.add_subdirectory_to_paths (surfaces_dir_name);
-
- bool surfaces_path_defined = false;
- SearchPath spath_env (Glib::getenv(surfaces_env_variable_name, surfaces_path_defined));
- if (surfaces_path_defined) {
- spath += spath_env;
- }
-
+ spath += Searchpath(Glib::getenv(surfaces_env_variable_name));
return spath;
}