From 396013bf5affc81143759a88e4282d11f64d6471 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 12 Oct 2022 16:11:31 +0200 Subject: [PATCH] Set and create clip-library folder if needed Direct calls to `Config->get_clip_library_dir` may return "@default@". The path is OS specific and may also not yet exist, so indirection is required. --- libs/ardour/library.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/ardour/library.cc b/libs/ardour/library.cc index e9b34c28fb..4c06d03323 100644 --- a/libs/ardour/library.cc +++ b/libs/ardour/library.cc @@ -31,6 +31,7 @@ #include "pbd/xml++.h" #include "ardour/rc_configuration.h" +#include "ardour/clip_library.h" #include "ardour/library.h" using namespace PBD; @@ -165,7 +166,7 @@ LibraryFetcher::foreach_description (boost::function std::string LibraryFetcher::install_path_for (LibraryDescription const & desc) { - return Glib::build_filename (Config->get_clip_library_dir(), desc.toplevel_dir()); + return Glib::build_filename (clip_library_dir(true), desc.toplevel_dir()); } bool