From f47041eefd76136777b040beaa24fe1f40eff164 Mon Sep 17 00:00:00 2001 From: reuk Date: Tue, 13 Dec 2022 20:36:23 +0000 Subject: [PATCH] LV2 Client: Avoid assertion when invoking manifest writer with a relative path --- modules/juce_audio_plugin_client/LV2/juce_LV2_Client.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/juce_audio_plugin_client/LV2/juce_LV2_Client.cpp b/modules/juce_audio_plugin_client/LV2/juce_LV2_Client.cpp index 198555c554..333986bdda 100644 --- a/modules/juce_audio_plugin_client/LV2/juce_LV2_Client.cpp +++ b/modules/juce_audio_plugin_client/LV2/juce_LV2_Client.cpp @@ -813,7 +813,11 @@ struct RecallFeature { const ScopedJuceInitialiser_GUI scope; const auto processor = LV2PluginInstance::createProcessorInstance(); - const File absolutePath { CharPointer_UTF8 { libraryPath } }; + + const String pathString { CharPointer_UTF8 { libraryPath } }; + + const auto absolutePath = File::isAbsolutePath (pathString) ? File (pathString) + : File::getCurrentWorkingDirectory().getChildFile (pathString); const auto writers = { writeManifestTtl, writeDspTtl, writeUiTtl };