Edgar wrote:Gale Andrews wrote:
Let's take the easier Windows case first. If our instructions said to run the external app in the folder where audacity.exe was, can the external app not write resetPrefs.txt to the folder that the external app is in?
I think I got lost somewhere along the line. Are you changing the design specifications again?
My understanding is that, on Windows, there is a "magic, secret handshake file" (resetPrefs.txt) whose content is immaterial but whose absence or presence is a switch which causes Audacity to make a decision whether are not to reset preferences upon launch.
Yes, but that "magic file" works on Mac and Linux too.
Linux users probably don't need an external app, though, once 2.0.7 trickles through to them. They should be capable of finding and deleting audacity.cfg.
Edgar wrote:Are you suggesting that we need to write an external Windows app which the user must place within Audacity's folder and, when run, creates this magic file?
Yes, but the main driver for that suggestion is that this "magic file" mechanism works for Mac too, so may make it simpler to produce a native external app for them. Leland has not found a way yet to make your Windows external reset app into a Mac app.
And that Windows app is arguably overkill, assuming we fix the bugs with pluginregistry.cfg.
Edgar wrote:If so, I do not see the point, my understanding is that we already have this application (the installer).
We do, but (a) not everyone installs Audacity (users in corporate settings may not be allowed to install apps so must use the zip).
And (b) users may not have kept the installer. If they have not, then they have to download the installer again (all 20+ MB of it). As opposed to which, they could just click the reset app in their existing Audacity folder.
Edgar wrote:Also, if we are assuming that the user is sophisticated enough to download an application, find Audacity's folder then copy said application into said folder, I believe that we can also assume they could download the text file and do the same.
I am hoping we would distribute the external app with Audacity on Windows and Mac. So nothing to download that they did not already download.
Edgar wrote:Maybe, that is the solution. I have examined the code which plays with resetPrefs.txt*; it is not exclusive to Windows.
Indeed, I've been saying that for several posts now.
Edgar wrote:Since all three platforms look for that file in the application executable's wxStandardPaths::Get().GetResourcesDir() folder why not perform the switching action ubiquitously? We could have instructions which allows the sophisticated user to create/destroy resetPrefs.txt as appropriate without downloading or offer the file as a trivial download for the user who needs more handholding. There could also be some extended instructions on how to find the Audacity executable's folder (on Windows the Task Manager is the easiest solution). The only potential pitfall I can see is if the user does not have Write permissions in that folder (which would be the case if the user installed in - e.g. on Windows - C:Program Files (x86)Audacity the Microsoft-right thing to do).
Yes obviously the astute user could create a file called "resetPrefs.txt", even while Audacity was open.
It not only requires the user to have write permissions (or to be able to elevate permissions). They must also be able to create a new text file outside a text editor. This is not trivial to a naive user, and is hard on Mac because Finder gives you no obvious way to do it.
Given those obstacles I think it would be as easy to give instructions to find and delete audacity.cfg. Which brings us full circle as users find that hard and we are trying to make this easier.
Edgar wrote:I have never run the Audacity installer (do not want to mess up my development environment)
You can run the Audacity installer without upsetting Visual Studio. If not, my VS is extremely upset.
Edgar wrote:what is the default install location
http://manual.audacityteam.org/o/man/fa ... s.html#exe.
Edgar wrote:can the non-administrator user create a new text file in the location?
No, see above.
Gale