*/
+#include <iostream>
#include <glibmm/miscutils.h>
#include "ardour/export_formats_search_path.h"
SearchPath
export_formats_search_path ()
{
- bool export_path_defined = false;
- SearchPath spath (Glib::getenv (export_env_variable_name, export_path_defined));
-
- spath += user_config_directory ();
+ SearchPath spath (ardour_data_search_path());
spath.add_subdirectory_to_paths (export_formats_dir_name);
+ bool export_formats_path_defined = false;
+ SearchPath spath_env (Glib::getenv(export_env_variable_name, export_formats_path_defined));
+
+ if (export_formats_path_defined) {
+ spath += spath_env;
+ }
+
return spath;
}