diff options
Diffstat (limited to 'libs/ardour/export_formats_search_path.cc')
-rw-r--r-- | libs/ardour/export_formats_search_path.cc | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/libs/ardour/export_formats_search_path.cc b/libs/ardour/export_formats_search_path.cc index 39ccb0de13..ed87a56e1a 100644 --- a/libs/ardour/export_formats_search_path.cc +++ b/libs/ardour/export_formats_search_path.cc @@ -36,17 +36,8 @@ SearchPath export_formats_search_path () { SearchPath spath; - - spath = user_config_directory (); - spath.add_subdirectory_to_paths (export_formats_dir_name); - - bool export_path_defined = false; - SearchPath spath_env = Glib::getenv (export_env_variable_name, export_path_defined); - - if (export_path_defined) { - spath += spath_env; - } - + spath += Glib::build_filename (user_config_directory (), export_formats_dir_name); + spath += SearchPath(Glib::getenv (export_env_variable_name)); return spath; } |