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

Move socket file to temporary directory

Since the socket file is meant to be local machine only, putting
it on a network share can fail.  In a multi-user environment, the user's
home direcotry could easily be on a network disk.  In most cases, the
temp directory will be on local disk.
This commit is contained in:
Leland Lucius
2015-05-15 19:06:16 -05:00
parent 71000f6cb2
commit 44900e1938

View File

@@ -1634,7 +1634,7 @@ bool AudacityApp::CreateSingleInstanceChecker(wxString dir)
mChecker = new wxSingleInstanceChecker();
#if defined(__UNIX__)
wxString sockFile(FileNames::DataDir() + wxT("/.audacity.sock"));
wxString sockFile(defaultTempDir + wxT("/.audacity.sock"));
#endif
wxString runningTwoCopiesStr = _("Running two copies of Audacity simultaneously may cause\ndata loss or cause your system to crash.\n\n");