mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-17 00:20: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):
|
/* Search path (for plug-ins, translations etc) is (in this order):
|
||||||
* The AUDACITY_PATH environment variable
|
* The AUDACITY_PATH environment variable
|
||||||
* The current directory
|
* 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 */
|
* The "share" and "share/doc" directories in their install path */
|
||||||
wxString home = wxGetHomeDir();
|
wxString home = wxGetHomeDir();
|
||||||
|
|
||||||
@ -1179,6 +1180,9 @@ bool AudacityApp::OnInit()
|
|||||||
FileNames::AddUniquePathToPathList(FileNames::DataDir(), audacityPathList);
|
FileNames::AddUniquePathToPathList(FileNames::DataDir(), audacityPathList);
|
||||||
|
|
||||||
#ifdef AUDACITY_NAME
|
#ifdef AUDACITY_NAME
|
||||||
|
FileNames::AddUniquePathToPathList(wxString::Format(wxT("%s/.%s-files"),
|
||||||
|
home, wxT(AUDACITY_NAME)),
|
||||||
|
audacityPathList);
|
||||||
FileNames::AddUniquePathToPathList(wxString::Format(wxT("%s/share/%s"),
|
FileNames::AddUniquePathToPathList(wxString::Format(wxT("%s/share/%s"),
|
||||||
wxT(INSTALL_PREFIX), wxT(AUDACITY_NAME)),
|
wxT(INSTALL_PREFIX), wxT(AUDACITY_NAME)),
|
||||||
audacityPathList);
|
audacityPathList);
|
||||||
@ -1186,6 +1190,9 @@ bool AudacityApp::OnInit()
|
|||||||
wxT(INSTALL_PREFIX), wxT(AUDACITY_NAME)),
|
wxT(INSTALL_PREFIX), wxT(AUDACITY_NAME)),
|
||||||
audacityPathList);
|
audacityPathList);
|
||||||
#else //AUDACITY_NAME
|
#else //AUDACITY_NAME
|
||||||
|
FileNames::AddUniquePathToPathList(wxString::Format(wxT("%s/.audacity-files"),
|
||||||
|
home),
|
||||||
|
audacityPathList)
|
||||||
FileNames::AddUniquePathToPathList(wxString::Format(wxT("%s/share/audacity"),
|
FileNames::AddUniquePathToPathList(wxString::Format(wxT("%s/share/audacity"),
|
||||||
wxT(INSTALL_PREFIX)),
|
wxT(INSTALL_PREFIX)),
|
||||||
audacityPathList);
|
audacityPathList);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user