mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-06 23:02:42 +02:00
Bug 1220: Residuals.
Space required in path name. Also force old names that were set to temp directory to update to ones that aren't on Mac too. Something to test on Mac -> What happens if suggested directory does not exist?
This commit is contained in:
parent
eb32438907
commit
07090e691b
@ -1302,7 +1302,7 @@ bool AudacityApp::OnInit()
|
||||
|
||||
// JKC Bug 1220: Using an actual temp directory for session data on Mac was
|
||||
// wrong because it would get cleared out on a reboot.
|
||||
defaultTempDir.Printf(wxT("%s/Library/Application/Support/audacity/SessionData"),
|
||||
defaultTempDir.Printf(wxT("%s/Library/Application\ Support/audacity/SessionData"),
|
||||
tmpDirLoc.c_str());
|
||||
|
||||
//defaultTempDir.Printf(wxT("%s/audacity-%s"),
|
||||
@ -1579,9 +1579,6 @@ void AudacityApp::OnKeyDown(wxKeyEvent &event)
|
||||
// We now disallow temp directory name that puts it where cleaner apps will
|
||||
// try to clean out the files.
|
||||
bool AudacityApp::IsTempDirectoryNameOK( const wxString & Name ){
|
||||
#ifndef __WXMSW__
|
||||
return true;
|
||||
#else
|
||||
wxFileName tmpFile;
|
||||
tmpFile.AssignTempFileName(wxT("nn"));
|
||||
// use Long Path to expand out any abbreviated long substrings.
|
||||
@ -1591,7 +1588,6 @@ bool AudacityApp::IsTempDirectoryNameOK( const wxString & Name ){
|
||||
wxFileName cmpFile( Name );
|
||||
wxString NameCanonical = cmpFile.GetLongPath( ) + "\\";
|
||||
return !(NameCanonical.StartsWith( BadPath ));
|
||||
#endif
|
||||
}
|
||||
|
||||
bool AudacityApp::InitTempDir()
|
||||
|
@ -151,8 +151,6 @@ void DirectoriesPrefs::OnChooseTempDir(wxCommandEvent & e)
|
||||
newDirName = wxT("SessionData");
|
||||
#elif defined(__WXMSW__)
|
||||
// Clearing Bug 1271 residual issue. Let's NOT have temp in the name.
|
||||
// [Arguably we should do this for all platforms, not just Windows
|
||||
// which has cleaners that clean up temp data. For another day].
|
||||
newDirName = wxT("SessionData");
|
||||
#else
|
||||
newDirName = wxT(".audacity_temp");
|
||||
|
Loading…
x
Reference in New Issue
Block a user