fph / bastet

Evil falling block game. http://fph.altervista.org/prog/bastet.html
GNU General Public License v3.0
272 stars 35 forks source link

Follow XDG Base Directory Specifications #25

Open VinceUB opened 1 year ago

VinceUB commented 1 year ago

Currently, Bastet automatically generates the .bastetrc and .bastetscores files in $HOME. This pollutes the home directory, and doesn't follow the XDG Base Directory Specs.

The specs state that program configuration should be localised to a subdirectory of $XDG_CONFIG_HOME, which defaults to $HOME/.config. In Bastet's case, I think it would make sense to move $HOME/.bastetrc to $XDG_CONFIG_HOME/bastet/bastetrc.

Similarly, user-specific data should be stored in a subdirectory of $XDG_DATA_HOME, which defaults to $HOME/.local/share. In Bastet's case, I think it would make sense to move $HOME/.bastetscores to $XDG_CONFIG_HOME/bastet/scores or something similar.