# What changed in platformdirs

> 5 changes in platformdirs 4 from its official release notes, upgrade guides and advisories: 2 breaking. Each one cited. Sources checked 2026-10-18. HTML: https://unstale.sh/pypi/platformdirs/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## platformdirs 4

### Breaking changes

- Raises RuntimeError when the home directory cannot be resolved instead of returning paths rooted at a literal `~`. (4.13.4) — [release notes](https://github.com/tox-dev/platformdirs/releases/tag/4.13.4)
- Raises RuntimeError when the home directory cannot be resolved instead of returning a path rooted at a literal `~`. (4.13.4) — [release notes](https://github.com/tox-dev/platformdirs/releases/tag/4.13.4)

### Fixes and other changes

- Android app directories are located from sys.path only when it contains a complete files path segment. (4.13.4) — [release notes](https://github.com/tox-dev/platformdirs/releases/tag/4.13.4)
- Keeps user directory strings, paths, and iterators consistent when Unix root enables use_site_for_root, and restores root redirection when the context exits. (4.13.4) — [release notes](https://github.com/tox-dev/platformdirs/releases/tag/4.13.4)
- Normalizes user_fonts_dir when XDG_DATA_HOME ends with a separator. (4.13.2) — [release notes](https://github.com/tox-dev/platformdirs/releases/tag/4.13.2)
