The XDG Base Directory Specification is not some new thing, it's been around for a while. Writing a new project? Use it. Updating an old project? Use it. It's not hard to implement, and it's not hard to use.
- HackerNews Discussion (2023-03)
- Use the XDG Base Directory Specification! (@hyperupcall)
- XDG-Ninja(@b3nj5m1n)
This is super easy to implement, you probably don't even need a library. But if you are lazy: