title: Default location for configuration files - MacOS?
body: <p>In a cross-platform application, I am working with a configuration file that allows the user to override various defaults if he wishes to.</p>
  
  <p>The problem I have is... where to place / look for this configuration file, especially with regards to MacOS X (which I never used and have no access to)? I know that MacOS X is based on Unix, but I also know that many things are done very much differently there...</p>
  
  <p>My current choices:</p>
  
  <p>Unix:</p>
  
  <pre><code>~/.config/&lt;appname&gt;/&lt;appname&gt;.cfg
  </code></pre>
  
  <p>Windows (shomewhat unsure about this one too, things seem to be all over the place here - %LOCALAPPDATA% or %USERPROFILE% seem to be valid choices too):</p>
  
  <pre><code>%APPDATA%/&lt;appname&gt;/&lt;appname&gt;.cfg
  </code></pre>
  
  <p>MacOS:</p>
  
  <pre><code>...?
  </code></pre>
  
  <p>Any comments, on MacOS or my other choices?</p>