diff options
Diffstat (limited to 'libs/surfaces/mackie/device_profile.cc')
-rw-r--r-- | libs/surfaces/mackie/device_profile.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/surfaces/mackie/device_profile.cc b/libs/surfaces/mackie/device_profile.cc index d7667ce721..3a9013dc9f 100644 --- a/libs/surfaces/mackie/device_profile.cc +++ b/libs/surfaces/mackie/device_profile.cc @@ -56,7 +56,7 @@ static const char* const devprofile_dir_name = "mcp"; static const char* const devprofile_suffix = ".profile"; static SearchPath -system_devprofile_search_path () +devprofile_search_path () { bool devprofile_path_defined = false; sys::path spath_env (Glib::getenv (devprofile_env_variable_name, devprofile_path_defined)); @@ -65,7 +65,7 @@ system_devprofile_search_path () return spath_env; } - SearchPath spath (system_data_search_path()); + SearchPath spath (ardour_data_search_path()); spath.add_subdirectory_to_paths(devprofile_dir_name); return spath; @@ -94,8 +94,7 @@ DeviceProfile::reload_device_profiles () vector<string> s; vector<string *> *devprofiles; PathScanner scanner; - SearchPath spath (system_devprofile_search_path()); - spath += user_devprofile_directory (); + SearchPath spath (devprofile_search_path()); devprofiles = scanner (spath.to_string(), devprofile_filter, 0, false, true); device_profiles.clear (); |