diff --git a/distrho/src/DistrhoPluginLV2export.cpp b/distrho/src/DistrhoPluginLV2export.cpp index 36402eaf..dd4aa285 100644 --- a/distrho/src/DistrhoPluginLV2export.cpp +++ b/distrho/src/DistrhoPluginLV2export.cpp @@ -15,6 +15,7 @@ */ #include "DistrhoPluginInternal.hpp" +#include "../DistrhoPluginUtils.hpp" #include "lv2/atom.h" #include "lv2/buf-size.h" @@ -223,6 +224,10 @@ void lv2_generate_ttl(const char* const basename) { USE_NAMESPACE_DISTRHO + String bundlePath(getBinaryFilename()); + bundlePath.truncate(bundlePath.rfind(DISTRHO_OS_SEP)); + d_nextBundlePath = bundlePath.buffer(); + // Dummy plugin to get data from d_nextBufferSize = 512; d_nextSampleRate = 44100.0;