From e6496ab0328850e11b6c0d1955feed825575b26c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 26 Mar 2021 17:14:55 +0100 Subject: [PATCH] Ignore `ARDOUR_DATA_PATH` env variable on windows The variable is unset (and unused), windows_search_path() is used on that platform. This prevents the "ARDOUR_DATA_PATH not set in environment" message from being printed. --- libs/ardour/filesystem_paths.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/ardour/filesystem_paths.cc b/libs/ardour/filesystem_paths.cc index 1d1bd125dd..579f346e65 100644 --- a/libs/ardour/filesystem_paths.cc +++ b/libs/ardour/filesystem_paths.cc @@ -290,13 +290,14 @@ ardour_data_search_path () search_path += user_config_directory(); #ifdef PLATFORM_WINDOWS search_path += windows_search_path (); -#endif +#else std::string s = Glib::getenv("ARDOUR_DATA_PATH"); if (s.empty()) { std::cerr << _("ARDOUR_DATA_PATH not set in environment\n"); } else { search_path += Searchpath (s); } +#endif } return search_path;