[1.7.4] (Linux) Game does not follow XDG Base Directory Specification.

Make all T-Engine/ToME 4 bug reports here

Moderator: Moderator

Post Reply
Message
Author
SolarBear
Posts: 1
Joined: Sun Mar 12, 2023 8:22 pm

[1.7.4] (Linux) Game does not follow XDG Base Directory Specification.

#1 Post by SolarBear »

On Linux the game ignores the XDG Base Directory Specification and creates the data folder at $HOME/.t-engine. It can be moved using the --home path argument, but the end folder will always be .t-engine which is unfortunate for organization and navigation.

At minimum, the --home path argument should allow you to set the entire path for the game's saved data. Ideally, the game should automatically detect and respect $XDG_DATA_HOME and automatically place its data there, which would typically be $HOME/.local/share/t-engine. If it doesn't detect the variable, falling back to $HOME/.local/share/t-engine would be the desired secondary outcome.

Splitting up the data into separate locations for config, data, and cache would be following the spec to the letter, but that would require a substantial effort. The main goal here is the ability to move the data out of $HOME and into a more sane and organized directory.

More info: https://specifications.freedesktop.org/ ... atest.html

Post Reply