mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
Bug 2467 - Modules are not available for "Portable" Audacity
This commit is contained in:
parent
f3d3211558
commit
adbc1ba4b7
@ -1147,7 +1147,8 @@ bool AudacityApp::OnInit()
|
||||
/* Search path (for plug-ins, translations etc) is (in this order):
|
||||
* The AUDACITY_PATH environment variable
|
||||
* The current directory
|
||||
* The user's .audacity-data directory in their home directory
|
||||
* The user's "~/.audacity-data" or "Portable Settings" directory
|
||||
* The user's "~/.audacity-files" directory
|
||||
* The "share" and "share/doc" directories in their install path */
|
||||
wxString home = wxGetHomeDir();
|
||||
|
||||
@ -1179,6 +1180,9 @@ bool AudacityApp::OnInit()
|
||||
FileNames::AddUniquePathToPathList(FileNames::DataDir(), audacityPathList);
|
||||
|
||||
#ifdef AUDACITY_NAME
|
||||
FileNames::AddUniquePathToPathList(wxString::Format(wxT("%s/.%s-files"),
|
||||
home, wxT(AUDACITY_NAME)),
|
||||
audacityPathList);
|
||||
FileNames::AddUniquePathToPathList(wxString::Format(wxT("%s/share/%s"),
|
||||
wxT(INSTALL_PREFIX), wxT(AUDACITY_NAME)),
|
||||
audacityPathList);
|
||||
@ -1186,6 +1190,9 @@ bool AudacityApp::OnInit()
|
||||
wxT(INSTALL_PREFIX), wxT(AUDACITY_NAME)),
|
||||
audacityPathList);
|
||||
#else //AUDACITY_NAME
|
||||
FileNames::AddUniquePathToPathList(wxString::Format(wxT("%s/.audacity-files"),
|
||||
home),
|
||||
audacityPathList)
|
||||
FileNames::AddUniquePathToPathList(wxString::Format(wxT("%s/share/audacity"),
|
||||
wxT(INSTALL_PREFIX)),
|
||||
audacityPathList);
|
||||
|
Loading…
x
Reference in New Issue
Block a user