diff --git a/src/FileNames.cpp b/src/FileNames.cpp index 75314b678..a8673ae83 100644 --- a/src/FileNames.cpp +++ b/src/FileNames.cpp @@ -97,9 +97,10 @@ wxString FileNames::DataDir() // the prefs are stored in the user data dir provided by the OS. wxFileName exePath(PlatformCompatibility::GetExecutablePath()); #if defined(__WXMAC__) - // This removes (for instance) "Audacity.app/Contents/MacOSX" - exePath.RemoveLastDir(); - exePath.RemoveLastDir(); + // Path ends for example in "Audacity.app/Contents/MacOSX" + //exePath.RemoveLastDir(); + //exePath.RemoveLastDir(); + // just remove the MacOSX part. exePath.RemoveLastDir(); #endif wxFileName portablePrefsPath(exePath.GetPath(), wxT("Portable Settings")); @@ -129,9 +130,10 @@ wxString FileNames::HtmlHelpDir() { #if defined(__WXMAC__) wxFileName exePath(PlatformCompatibility::GetExecutablePath()); - // This removes (for instance) "Audacity.app/Contents/MacOSX" - exePath.RemoveLastDir(); - exePath.RemoveLastDir(); + // Path ends for example in "Audacity.app/Contents/MacOSX" + //exePath.RemoveLastDir(); + //exePath.RemoveLastDir(); + // just remove the MacOSX part. exePath.RemoveLastDir(); return wxFileName( exePath.GetPath()+wxT("/help/manual"), wxEmptyString ).GetFullPath(); @@ -182,9 +184,10 @@ wxString FileNames::BaseDir() #if defined(__WXMAC__) baseDir = PlatformCompatibility::GetExecutablePath(); - // This removes (for instance) "Audacity.app/Contents/MacOSX/" - baseDir.RemoveLastDir(); - baseDir.RemoveLastDir(); + // Path ends for example in "Audacity.app/Contents/MacOSX" + //baseDir.RemoveLastDir(); + //baseDir.RemoveLastDir(); + // just remove the MacOSX part. baseDir.RemoveLastDir(); #elif defined(__WXMSW__) // Don't use wxStandardPaths::Get().GetDataDir() since it removes diff --git a/src/PluginManager.cpp b/src/PluginManager.cpp index ba9da1939..90f374a9c 100644 --- a/src/PluginManager.cpp +++ b/src/PluginManager.cpp @@ -1447,8 +1447,10 @@ void PluginManager::FindFilesInPathList(const wxString & pattern, // Add the "Audacity" plug-ins directory wxFileName ff = PlatformCompatibility::GetExecutablePath(); #if defined(__WXMAC__) - ff.RemoveLastDir(); - ff.RemoveLastDir(); + // Path ends for example in "Audacity.app/Contents/MacOSX" + //ff.RemoveLastDir(); + //ff.RemoveLastDir(); + // just remove the MacOSX part. ff.RemoveLastDir(); #endif ff.AppendDir(wxT("plug-ins"));