Skip to content
Permalink
Browse files
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.
  • Loading branch information
lllucius committed May 16, 2015
1 parent 71000f6 commit 44900e1938971b3a3239cf1a6d6e50e5ca794b59
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/AudacityApp.cpp
@@ -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");

0 comments on commit 44900e1

Please sign in to comment.