Sorry, Leland I'm not sure I understand. Are you saying that the user "should" be seeing "Already running" if they force quit and restart if things worked as expected?Leland wrote:In 2.0.4, an existing lockfile at startup would cause the "already running" message on OSX and Linux if there was a problem trying to read the existing lockfile (this is all wxWidgets at this point). The file is supposed to be read to retrieve the PID of the owning process and a check is made to see if that process is still running. Somewhere in there a failure is happening and I'd need to trace through wxWidgets to figure out why.Gale Andrews wrote:I wondered about that, because I recalled a left over lock file from an old session could cause "already running".Leland wrote:Lesa, did you clean up the files listed above? Specifically, did you delete the "audacity-lesawilson" directory or its contents? That is where the "single instance" lock file is located and is what I was going to suggest you delete to fix the problem.Lesa wrote:Hi Gale! I just did a huge sweep of files on my computer and fixed it. Not exactly sure what happened but I repeated the steps you gave me and it worked after posting my last message. solved! Thank you!!
But I'm not seeing a left over lock file causing that message on Mavericks or Yosemite, if I fake it by copying the lock file to somewhere else, quit Audacity, paste the lock file to Audacity's temp folder in /var/folders then launch Audacity. Audacity just starts anyway.
However I can't start a second instance of Audacity running except in the known cases.
I see the same on Linux Ubuntu - a pasted lock file does not stop Audacity 2.1.0 launching. A pasted lock file makes Audacity 2.0.4 give a warning about unable to lock the temporary folder because it may be in use by another copy of Audacity, but if I OK the warning I can launch Audacity.
What should happen?
If the normally created lock file contains the PID of the Audacity version that starts, then naturally I would not be surprised if Audacity starting after a force quit had some other PID. Are we checking for the existence of a lock file or for a matching PID?
I understand we're going to move the lock file to ~/Library/Application Support/audacity/ (where the *.cfg files are kept). Is the Audacity temp folder moving there too?Leland wrote:We're going to be changing it post 2.1.0 to the project directory, so it should survive reboots.Gale Andrews wrote:If so that could raise another issue, because on Linux we changed the default location of the Audacity temporary directory to be in /var/tmp instead of /tmp, on the grounds of preserving the directory between reboots.Leland wrote:The $TMPDIR folder is usually cleaned up at each reboot, so I'm curious why yours had some many items of significant age. Do you normally not shutdown your machine? Do you always just let is "sleep"?
Is there a Mac temp location that is preserved between reboots?
Gale