1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 08:09:32 +02: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

@ -73,19 +73,24 @@ set the audacity block size for writing files to disk to nnn bytes
Per user configuration file.
.RE
.I /tmp/audacity\-<user>/
.I /var/tmp/audacity\-<user>/
.RS
Default location of Audacity's temp directory, where <user> is your
username. If this location is not suitable (not enough space in
/tmp, for example), you should change the temp directory in
/var/tmp, for example), you should change the temp directory in
the Preferences and restart Audacity. Audacity is a disk-based
editor, so the temp directory is very important: it should always
be on a fast disk with lots of free space.
be on a fast (local) disk with lots of free space.
Note that older versions of Audacity put the temp directory inside
of the user's home directory. This is undesirable on many systems,
and using some directory in /tmp is recommended. Open the Preferences
to check.
and using some directory in /tmp is recommended.
On many modern Linux systems all files in /tmp/ will be deleted
each time the system boots up, which makes recovering a recording
that was going on when the system crashed much harder. This is why
the default is to use a directory in /var/tmp/ which will not
normally be deleted by the system. Open the Preferences to check.
.RE
.SH SEARCH PATH
When looking for plug-ins, help files, localization files, or other

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(""))