Fix ladspa plugin discovery
This commit is contained in:
@@ -448,15 +448,8 @@ void ConfigManager::loadConfigFile()
|
||||
|
||||
if( m_ladDir.isEmpty() )
|
||||
{
|
||||
#if defined(LMMS_BUILD_WIN32)
|
||||
m_ladDir = qApp->applicationDirPath() + "/plugins/ladspa" + QDir::separator();
|
||||
#elif defined(LMMS_BUILD_APPLE)
|
||||
m_ladDir = qApp->applicationDirPath() + "/../lib/lmms/ladspa/";
|
||||
#else
|
||||
m_ladDir = qApp->applicationDirPath() + '/' + LIB_DIR + "/lmms/ladspa/";
|
||||
#endif
|
||||
m_ladDir = QDir::cleanPath( m_ladDir );
|
||||
m_ladDir += ","+userLadspaDir();
|
||||
m_ladDir = "plugins:ladspa/";
|
||||
m_ladDir = ","+userLadspaDir();
|
||||
}
|
||||
|
||||
#ifdef LMMS_HAVE_STK
|
||||
|
||||
@@ -34,16 +34,19 @@
|
||||
|
||||
#include "ConfigManager.h"
|
||||
#include "LadspaManager.h"
|
||||
#include "PluginFactory.h"
|
||||
|
||||
|
||||
|
||||
LadspaManager::LadspaManager()
|
||||
{
|
||||
// Make sure plugin search paths are set up
|
||||
PluginFactory::instance();
|
||||
|
||||
QStringList ladspaDirectories = QString( getenv( "LADSPA_PATH" ) ).
|
||||
split( LADSPA_PATH_SEPERATOR );
|
||||
ladspaDirectories += ConfigManager::inst()->ladspaDir().split( ',' );
|
||||
|
||||
ladspaDirectories.push_back( "plugins:ladspa" );
|
||||
#ifndef LMMS_BUILD_WIN32
|
||||
ladspaDirectories.push_back( qApp->applicationDirPath() + '/' + LIB_DIR + "ladspa" );
|
||||
ladspaDirectories.push_back( "/usr/lib/ladspa" );
|
||||
|
||||
Reference in New Issue
Block a user