mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-17 16:40:07 +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:
parent
4ea008ea67
commit
08e16c00ad
@ -73,19 +73,24 @@ set the audacity block size for writing files to disk to nnn bytes
|
|||||||
Per user configuration file.
|
Per user configuration file.
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.I /tmp/audacity\-<user>/
|
.I /var/tmp/audacity\-<user>/
|
||||||
.RS
|
.RS
|
||||||
Default location of Audacity's temp directory, where <user> is your
|
Default location of Audacity's temp directory, where <user> is your
|
||||||
username. If this location is not suitable (not enough space in
|
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
|
the Preferences and restart Audacity. Audacity is a disk-based
|
||||||
editor, so the temp directory is very important: it should always
|
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
|
Note that older versions of Audacity put the temp directory inside
|
||||||
of the user's home directory. This is undesirable on many systems,
|
of the user's home directory. This is undesirable on many systems,
|
||||||
and using some directory in /tmp is recommended. Open the Preferences
|
and using some directory in /tmp is recommended.
|
||||||
to check.
|
|
||||||
|
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
|
.RE
|
||||||
.SH SEARCH PATH
|
.SH SEARCH PATH
|
||||||
When looking for plug-ins, help files, localization files, or other
|
When looking for plug-ins, help files, localization files, or other
|
||||||
|
@ -1045,14 +1045,14 @@ bool AudacityApp::OnInit()
|
|||||||
// AColor depends on theTheme.
|
// AColor depends on theTheme.
|
||||||
AColor::Init();
|
AColor::Init();
|
||||||
|
|
||||||
/* On Unix systems, the default temp dir is in /tmp. */
|
|
||||||
/* Search path (for plug-ins, translations etc) is (in this order):
|
/* Search path (for plug-ins, translations etc) is (in this order):
|
||||||
* The AUDACITY_PATH environment variable
|
* The AUDACITY_PATH environment variable
|
||||||
* The current directory
|
* The current directory
|
||||||
* The user's .audacity-files directory in their home directory
|
* The user's .audacity-files directory in their home directory
|
||||||
* The "share" and "share/doc" directories in their install path */
|
* The "share" and "share/doc" directories in their install path */
|
||||||
#ifdef __WXGTK__
|
#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"));
|
wxString pathVar = wxGetenv(wxT("AUDACITY_PATH"));
|
||||||
if (pathVar != wxT(""))
|
if (pathVar != wxT(""))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user