Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
FreeDesktop spec for user folder should be respected on Linux #4392
It's actually a little more complicated than that, because the XDG spec separates different types of user data:
And lookups for data and config are supposed to look in multiple directories as controlled by $XDG_CONFIG_DIRS and $XDG_DATA_DIRS.
I don't think we have any cache type files (we used to; some model data got processed and cached IIRC). We certainly have config. We also have:
Migrating existing users... eh, probably the best thing to do there is to check for the existence of ~/.pioneer/ and add it to the necessary search paths, but only write to the new directories. Maybe write a CONFIG_FILES_HAVE_MOVED file into ~/.pioneer/ if it exists, if we're feeling fancy.
Or easier just ignore ~/.pioneer/ completely, only use the new dirs, and accept that people will have to do some manual file moves. Document it somewhere.
Sounds like the best option, if we're to do this switch.
That sounds like it will cause some chaos in the player base. If we even have one?
I imagine most people don't read documentation
I think config.ini and imgui.ini should go to
Note that due to confinement, the Flatpak-packaged Pioneer won't be able to see the current savestates anyway, so it's a perfect timing for the change.
Maybe we can move the folder with some light scripting? In the top-level "pioneer" script for instance, when Pioneer is built from the source.
Separation of config and data while formally is specified, isn't really useful in case of games. It's a royal pain to move that over if you migrate your installation. So putting it in one location like