Use XDG-compliant location by default in wxFileConfig
Still use the traditional dot file if it already exists, but prefer using the new location otherwise, i.e. for the new program installation. Add wxCONFIG_USE_HOME to allow forcing the use of the old location if really necessary. Also use the new style as default "old style" of MigrateLocalFile() so that calling it even when using XDG layout in wxStandardPaths still works as expected.
This commit is contained in:
parent
e38a61a09b
commit
6586afb0a5
6 changed files with 68 additions and 11 deletions
|
|
@ -31,6 +31,12 @@ Changes in behaviour not resulting in compilation errors
|
|||
wxGLAttributes::Samplers(1).SampleBuffers(4) explicitly if you need to keep
|
||||
using the same attributes that were previously used by default.
|
||||
|
||||
- Default location of file used by wxFileConfig under Unix has changed to
|
||||
XDG-compliant ~/.config/appname.conf instead of ~/.appname but note that
|
||||
any existing files at the old location will still continue to be used.
|
||||
See wxCONFIG_USE_XDG and wxCONFIG_USE_HOME for how to customize this
|
||||
behaviour. You may also find wxFileConfig::MigrateLocalFile() useful.
|
||||
|
||||
- As first mentioned in 3.0 release notes, the value of wxTHREAD_WAIT_DEFAULT,
|
||||
used by wxThread::Delete() and Wait() by default, has changed from
|
||||
wxTHREAD_WAIT_YIELD to wxTHREAD_WAIT_BLOCK for safety and consistency.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue