Update Where Solarus Stores Its Files
I think where Solarus stores its user files in Linux/Unix is a bit old fashioned. (I don't really use it on other platforms, so I'm going to need help to apply this idea there.) Currently, user files are stored in $HOME/.solarus/
, with newer standards I think we should move them to $XDG_DATA_HOME/solarus/
(defaults to $HOME/.local/share/solarus
if the variable XDG_DATA_HOME
is unset).
As for compatibility, I think the version of Solarus that this change first releases in should check the new location, if it there use it. Otherwise check the old location, if it is there use it. Otherwise (neither directory exists), create a new directory in the new location. New users use the new location, old users can keep using the old one. And if old users want to switch, they just have to move the directory.
The XDG Base Directory Specification lists a lot of other file. I've done a quick scan and other Solarus utilities may want to use some of them, but I don't think the engine will have use for them.