X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fcontrol_protocol_search_path.cc;h=345989277bef662f571b17585dca960fe5d15efb;hb=204baa31d842d4c2f833d319b6fa55e402a1bfb8;hp=c7c9b635a38fad610e58617ac6e1eb1ee5219fc0;hpb=40e2a6b16b47acf1f19a31f5e6d1cd463c45e1b6;p=ardour.git diff --git a/libs/ardour/control_protocol_search_path.cc b/libs/ardour/control_protocol_search_path.cc index c7c9b635a3..345989277b 100644 --- a/libs/ardour/control_protocol_search_path.cc +++ b/libs/ardour/control_protocol_search_path.cc @@ -34,18 +34,18 @@ namespace ARDOUR { SearchPath control_protocol_search_path () { - bool surfaces_path_defined = false; - SearchPath spath_env (Glib::getenv(surfaces_env_variable_name, surfaces_path_defined)); - - if (surfaces_path_defined) { - return spath_env; - } - SearchPath spath (user_config_directory ()); spath += ardour_module_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; + } + return spath; }