mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-26 14:41:14 +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:
@@ -1634,7 +1634,7 @@ bool AudacityApp::CreateSingleInstanceChecker(wxString dir)
|
|||||||
mChecker = new wxSingleInstanceChecker();
|
mChecker = new wxSingleInstanceChecker();
|
||||||
|
|
||||||
#if defined(__UNIX__)
|
#if defined(__UNIX__)
|
||||||
wxString sockFile(FileNames::DataDir() + wxT("/.audacity.sock"));
|
wxString sockFile(defaultTempDir + wxT("/.audacity.sock"));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
wxString runningTwoCopiesStr = _("Running two copies of Audacity simultaneously may cause\ndata loss or cause your system to crash.\n\n");
|
wxString runningTwoCopiesStr = _("Running two copies of Audacity simultaneously may cause\ndata loss or cause your system to crash.\n\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user