Shane Mueller wrote:
> Before the next release, can we make sure that the commands.cfg file
> behaves more politely on unix-like systems? It is currently pretty
> obnoxious, ranking up there with old-school netscape's mail directory
> and Open Office. Here are two properties I wish it would have:
> * It is hidden by default. This would _either_ mean it is named
> .commands.cfg, or it is inside an .audacity directory.
> * It unambiguously tells you what it is for. This would _either_ mean
> that it is named something like .audacity.cfg or is inside an .audacity
Sounds good. This was actually on my TODO list before 1.1.3 to look
at this issue.
> Given that there is already a config file called .audacity, and a
> directory called .audacity_temp, I would like to see these consolidated
> into a single .audacity directory. So, we could have a directory
> ~/.audacity with a temp subdirectory, a commands.cfg file, and
That sounds good to me. Actually I think that commands should be
"commands.xml", to be totally clear what format it's in. The
preferences file (currently the .Audacity file) is actually in
the old DOS ".cfg" format, so "preferences.cfg" makes good sense.
> But, was there an issue with .audacity_temp--was it
> slated for the /tmp directory, but then this idea was retracted because
> /tmp is sometimes not mounted locally? Migration from earlier versions
> might be difficult if this directory is .audacity, so if that is the
> case, might I suggest the traditional ~/.audacity_d? This would
> hopefully be somewhat consistent with how it is on Mac Windows, and
> maybe still be user configurable.
How about ~/.Audacity1.1? (And then ~/.Audacity1.2?)
Joshua Haberman wrote:
> Unfortunately, I don't think wxConfig will give us this kind of control
> over where the preferences file goes. All we give to wxConfig is the
> name of the app, and on UNIX it automatically calls the preferences file
Actually it is possible for us to specify a file for wxConfig to use.
Here's the full constructor:
wxConfigBase(const wxString& appName = wxEmptyString,
const wxString& vendorName = wxEmptyString,
const wxString& localFilename = wxEmptyString,
const wxString& globalFilename = wxEmptyString,
long style = 0, wxMBConv& conv = wxConvUTF8)
I used this in earlier Mac versions to put the file in the Preferences
folder. Now wxMac does this automatically.
I'd say let's go ahead and create a .Audacity1.1 directory in the
home directory. On Mac OS X, it should be: