Index: src/plugins/InstrumentEditorFactory.cpp
===================================================================
RCS file: /var/cvs/linuxsampler/linuxsampler/src/plugins/InstrumentEditorFactory.cpp,v
retrieving revision 1.11
diff -r1.11 InstrumentEditorFactory.cpp
103a104
>             String dir = String(getenv("LINUXSAMPLER_PLUGIN_DIR"));
105c106,107
<             String dir = Sampler::GetInstallDir();
---
>             if (dir.empty())
>                 dir = Sampler::GetInstallDir();
133c135,137
<             if (!LoadPlugins(CONFIG_PLUGIN_DIR)) {
---
>             if (dir.empty())
>                 dir = CONFIG_PLUGIN_DIR;
>             if (!LoadPlugins(dir)) {
135c139
<                           << "directory (" << CONFIG_PLUGIN_DIR << "): "
---
>                           << "directory (" << dir << "): "
