Re: reset Preferences CFG file
Posted: Sun Nov 23, 2014 4:07 pm
Thanks for your work on this, Ed.
So no-one has actually compiled this "reset CPP2/reset.cpp"? Ed, if you would like me to compile it please give step-by-step - including where to add it into the Audacity solution if that is needed.
I tried adding the file into the "src" folder in my Audacity tree, then in VS2013, File --> New --> Project --> Visual C++ --> Win32 Application, set the new project to be located in "src", then in Solution Explorer, added "reset.cpp" to the "Source Files" folder.
I also experimented with and without checking the box "Empty Project" in the above dialogue to create the new project. I always come up against
and then the same on the other Widgets includes.
In that reset.cpp, what does this do:
Obviously we don't want to delete the Audacity executable (and I think you mean "Audacity.app/Contents/MacOS").
Also for Mac, it has the audacity-lock-<user name> file in the current Audacity temp directory. If on Windows we don't use a file to prevent running multiple instances of Audacity, how is it done?
I don't know what would happen if this was run from the Mac DMG installer, without trying it. It would have to be compiled first (see my questions above).
I agree the sledgehammer is the first target before resetting individual prefs, and actually I think the external sledgehammer the most important. It's easy to tell users to quit or force quit Audacity if need be.
I think the external app should allow to reset only audacity.cfg if we have the luxury of a dialogue for this, even if also deleting pluginregistry.cfg should be default. For example, having a bad device connected could be the cause of the failure to start in which case there is no need to delete pluginregistry.cfg. Either way, deleting audacity.cfg on its own offers rescan of effects.
If we only get the external app "approved" I definitely think deletion of pluginsregistry.cfg should be optional.
Yes I agree we should only delete .cfg files of the current user.
Gale
So no-one has actually compiled this "reset CPP2/reset.cpp"? Ed, if you would like me to compile it please give step-by-step - including where to add it into the Audacity solution if that is needed.
I tried adding the file into the "src" folder in my Audacity tree, then in VS2013, File --> New --> Project --> Visual C++ --> Win32 Application, set the new project to be located in "src", then in Solution Explorer, added "reset.cpp" to the "Source Files" folder.
I also experimented with and without checking the box "Empty Project" in the above dialogue to create the new project. I always come up against
Code: Select all
Error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory c:audacity_commsrcreset.cpp line 10In that reset.cpp, what does this do:
Code: Select all
if defined(__WXMAC__)
// This removes (for instance) "Audacity.app/Contents/MacOSX"
exePath.RemoveLastDir();
exePath.RemoveLastDir();
exePath.RemoveLastDir();
#endifAlso for Mac, it has the audacity-lock-<user name> file in the current Audacity temp directory. If on Windows we don't use a file to prevent running multiple instances of Audacity, how is it done?
I don't know what would happen if this was run from the Mac DMG installer, without trying it. It would have to be compiled first (see my questions above).
I agree the sledgehammer is the first target before resetting individual prefs, and actually I think the external sledgehammer the most important. It's easy to tell users to quit or force quit Audacity if need be.
I think the external app should allow to reset only audacity.cfg if we have the luxury of a dialogue for this, even if also deleting pluginregistry.cfg should be default. For example, having a bad device connected could be the cause of the failure to start in which case there is no need to delete pluginregistry.cfg. Either way, deleting audacity.cfg on its own offers rescan of effects.
If we only get the external app "approved" I definitely think deletion of pluginsregistry.cfg should be optional.
Yes I agree we should only delete .cfg files of the current user.
Gale