I would think for discoverability, it should be shipped with the distribution.Edgar wrote:IMHO, I would feel uncomfortable if the Audacity Team Developers did not want it distributed. I do not believe that it needs to be shipped with Audacity as part of the "normal" distribution.Gale Andrews wrote: I am not sure of the best way to build it on Mac, so I asked Leland.
Of course we can still post unofficial external reset apps for Mac and Linux on the Forum if developers don't want to officially distribute an external app. For my primitive effort on Mac, I used bash rm to delete audacity.cfg and sed for the version that only initialised cfg, but perhaps it should be done with Apple Script in case older Macs don't have support for rm and sed?
It was just a proof of concept, and I did no more than remove or edit the obvious location of ~/Library/Application Support/audacity/audacity.cfg. So I did not figure out anything about where the audacity installation was in the case that a Portable Settings folder was in use.Edgar wrote:In your bash script were you able to use code to determine the location of the configuration file?
But now I tested your external app for that case on Windows 7.
If audacity.cfg and pluginregistry.cfg are in a Portable Settings folder in an Audacity folder that is not the installed location, and the reset executable is in that custom location, the .cfg files in "Portable Settings" are not deleted by your app. Also the presence of those .cfg files in that "Portable Settings" folder prevents deletion of the .cfg files in %APPDATA%Audacity.
The presence of .cfg files in a "Portable Settings" folder in a location where Audacity is installed does not prevent your app deleting the .cfg files in %APPDATA%Audacity - but does so if the reset app is in the installed location of Audacity.
If I move the reset app outside a location where Audacity is (adding the required DLL's to its new location) then the .cfg files in %APPDATA%Audacity are deleted.
Your "single button" modification to Preferences initialises audacity.cfg if it is in a "Portable Settings" folder in the location Audacity was run from, but does not initialize audacity.cfg in %APPDATA%Audacity. Still, that is reasonable I think. The "Reset Preference" box in the Windows installer behaves likewise, affecting only the .cfg in Portable Settings if that folder exists when running Audacity.
Does that point to another solution - writing resetPrefs.txt to the location the reset app is run from?
The title of an interface dialogue should not have "the". The help text might have "the".Edgar wrote:In re. the icon: that is a QA/design decision for someone with more artistic skills than I. As long as it has some icon at this stage (alpha) that's all that is important as changing the artwork is simple.Gale Andrews wrote: Testing your external app on Windows, would it be better to use the official Audacity icon with some kind of overlay suggesting reset?
The Help dialogue has a typo "About Reset Audacity's References". I don't know why we need the possessive "Audacity's" anywhere.
Since the buttons actually do delete files, perhaps they should say "Delete" and not "Reset", and only the Help dialogue gives explanation. If we want the external app to to delete audacity.cfg as opposed to reset it, then the "single button" patch to Preferences should also delete audacity.cfg, shouldn't it?
When I only reset pluginregistry.cfg in your external app, the same dialogue is given about resetting Audacity's preferences as with the other buttons, despite I am not resetting Preferences.
If I say "No" in the dialogue to confirm I want to reset Preferences, should the app quit? Perhaps the user wants to explore the other options in the app or look at the help?
In re. the typo: references versus preferences - sorry, my dictation software has a hard time with those.
In re. grammar: correct grammar usage suggests either "Audacity's preference file" or "the Audacity preference file"; I know that Connie has been convinced that the inconsequential "the" is not desirable but I have a very hard time being convinced <grin>.
The button deletes audacity.cfg. Audacity recreates it when it launches. Perhaps the "Reset" word on the buttons is OK as it is now, given the Help says that the files are "completely removed". But the Help should say that the deletion does the reset.Edgar wrote:In re. Delete versus Reset: the original design was to "reset" Audacity's configuration file to be completely empty with the exception of the "initialized" line. The design is in flux! If the application eventually has a single button which does nothing but emptying the configuration file (leaving a blank file or one with the initialize line) then Reset is correct.
OK, but if we keep the "plugins reset only" button, we must not forget that it has a misleading dialogue.Edgar wrote:In re. different warning dialogs: until the design is finalized fine tuning the wording is not productive.
I'm glad you agree that "No" should not close the app.Edgar wrote:In re. clicking "No" - should close the app: IMHO no; after reading the warning, there is a good chance that the user will want to make a copy of the configuration file before deleting it. Keeping the App open might be convenient.
Maybe the app should have a button which opens the location of the configuration files in Windows Explorer/the equivalent Mac/Linux folder/directory Explorer. Maybe this application should be a Locator not a Deleter nor a Reseter.
The audacity.cfg default location is hidden by default on most modern systems, so we'd have to be sure if we opened the file manager that we actually displayed the location. Typing %APPDATA% in the Explorer address bar always shows that location.
Still, the whole point of this is to ease the burden on the user. So its main purpose should I think be to act on audacity.cfg directly. Could there be an option to either copy the audacity.cfg contents to the clipboard, or to make a copy of the file in its current location to audacity.cfg.bak?
Gale