Howdy,

There was discussion on Reddit[1] asking about how to get various
games to use alternate directories for the various files, particularly
the FreeDesktop.org $XDG_* directory layout.  These mostly break
down into a couple categories:

- save-games in $XDG_DATA_HOME

- configuration in $XDG_CONFIG_DIR (e.g. .huntd.conf)

- high-score files in $XDG_STATE_HOME

Any such modifications would likely need to do some fallback logic,
attempting the $XDG file first, and falling back to $HOME in a
second attempt.

I too appreciate the goals of moving such files away from cluttering
$HOME into well-known subdirectories.

Would there be any interest in such XDG-dir patches for the relevant
games[3] if I attempted to implement them and provide such a
patch-set?

-tkc

[1]
https://www.reddit.com/r/openbsd/comments/17j0zi9/change_game_score_default_directory/

[2]
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

[3]
atc(6), battlestar(6), canfield(6), hack(6), hunt(6), robots(6),
snake(6), and tetris(6) all seem to refer to $HOME






Reply via email to