# Objective
Add `XDG_CONFIG_HOME` to `bevy_platform::dirs` on Linux.
## Solution
On Linux, `bevy_platform::dirs::preferences_dir()` checks if
`XDG_CONFIG_HOME` is set and is an absolute path, falling back to the
original value `~/.config` if not.
## Testing
Added an integration test to bevy_platform that only runs on Linux which
uses `std::env` APIs to manipulate the `XDG_CONFIG_HOME` environment
variable. Those APIs have some safety that require they be run in a
single-threaded, standalone process.
---------
Co-authored-by: Adam Sasine <adam.sasine@gmail.com>