mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-23 15:50:05 +02:00
Bug 1220 - (Residual) OS X: Audacity's temp dir defaults to location that is cleaned up on reboot.
This commit is contained in:
parent
6881163129
commit
9787bf7978
@ -1590,7 +1590,13 @@ bool AudacityApp::IsTempDirectoryNameOK( const wxString & Name ){
|
||||
// use Long Path to expand out any abbreviated long substrings.
|
||||
wxString BadPath = tmpFile.GetLongPath();
|
||||
::wxRemoveFile(tmpFile.GetFullPath());
|
||||
|
||||
#ifdef __WXMAC__
|
||||
// This test is to fix bug 1220 on a 1.x to 2.x to 2.1.3 upgrade.
|
||||
// It is very slightly less permissive than we could be as it stops a path
|
||||
// with this string ANYWHERE within it.
|
||||
if( Name.Contains( "/tmp/audacity1.") )
|
||||
return false;
|
||||
BadPath = BadPath.BeforeLast( '/' ) + "/";
|
||||
wxFileName cmpFile( Name );
|
||||
wxString NameCanonical = cmpFile.GetLongPath( ) + "/";
|
||||
|
Loading…
x
Reference in New Issue
Block a user