13
0

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.
This commit is contained in:
Robin Gareus 2022-10-12 16:11:31 +02:00
parent ab7254e357
commit 396013bf5a
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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<void (LibraryDescription)>
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