1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-21 16:37:12 +01:00

Change the default location of the audacity temporary directory to be in /var/tmp not /tmp, so that files are not deleted on reboot by the OS automation, as suggested by several users on the mailing list.

This commit is contained in:
richardash1981
2011-11-26 17:21:52 +00:00
parent 4ea008ea67
commit 08e16c00ad
2 changed files with 12 additions and 7 deletions

View File

@@ -1045,14 +1045,14 @@ bool AudacityApp::OnInit()
// AColor depends on theTheme.
AColor::Init();
/* On Unix systems, the default temp dir is in /tmp. */
/* Search path (for plug-ins, translations etc) is (in this order):
* The AUDACITY_PATH environment variable
* The current directory
* The user's .audacity-files directory in their home directory
* The "share" and "share/doc" directories in their install path */
#ifdef __WXGTK__
defaultTempDir.Printf(wxT("/tmp/audacity-%s"), wxGetUserId().c_str());
/* On Unix systems, the default temp dir is in /var/tmp. */
defaultTempDir.Printf(wxT("/var/tmp/audacity-%s"), wxGetUserId().c_str());
wxString pathVar = wxGetenv(wxT("AUDACITY_PATH"));
if (pathVar != wxT(""))