1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-18 09:00:52 +02:00

Reinstate FileNames::PlugInDir() for Linux

Reverting its removal in commit 1dd6b848c28.
Path added to Nyquist *SYSTEM-DIR* PLUG-IN property.
This commit is contained in:
Steve Daulton 2017-06-04 17:21:07 +01:00
parent ee9649eeb5
commit 9816cc8c7b
3 changed files with 3 additions and 4 deletions

View File

@ -53,7 +53,7 @@ public:
* This returns the string path to where the user may have put plug-ins
* if they don't have system admin rights. Under default settings, it's
* <DataDir>/Plug-Ins/ */
static wxString PlugInDir(); // Windows and Mac only
static wxString PlugInDir();
static wxString ThemeDir();
static wxString ThemeComponentsDir();
static wxString ThemeCachePng();

View File

@ -1437,13 +1437,11 @@ void PluginManager::FindFilesInPathList(const wxString & pattern,
wxArrayString paths;
// Add the "per-user" plug-ins directory Windows / Mac
#if defined(__WXMAC__) || defined(__WXMSW__)
// Add the "per-user" plug-ins directory
{
const wxFileName &ff = FileNames::PlugInDir();
paths.Add(ff.GetFullPath());
}
#endif
// Add the "Audacity" plug-ins directory
wxFileName ff = PlatformCompatibility::GetExecutablePath();

View File

@ -2024,6 +2024,7 @@ wxArrayString NyquistEffect::GetNyquistSearchPath()
wxGetApp().AddUniquePathToPathList(prefix + wxT("plugins"), pathList);
wxGetApp().AddUniquePathToPathList(prefix + wxT("plug-ins"), pathList);
}
pathList.Add(FileNames::PlugInDir());
return pathList;
}