Support the ' XDG' specification by not putting anything in the root of $HOME
opened this issue · comments
Hiya
It seems my Oolite installation on Linux creates ~/.Oolite
. This is not tidy! Why not use instead - as I believe a specification called XDG asserts (see e.g. this Firefox bug report) - ~/config/Oolite
?
Looking in ~/.Oolite
, it stores addons and logs. These seem to fit better in XDG_DATA_HOME
("user-specific data files") instead of XDG_CONFIG_HOME
("user-specific configuration files").
In that case, the correct path is given by:
${XDG_DATA_HOME}/Oolite
, if theXDG_DATA_HOME
environment variable is set~/.local/share/Oolite
ifXDG_DATA_HOME
is not set (note the dot!)
Alternatively, are there GNUstep-specific directories that should be used instead?
There might need to be some logic to detect if ~/.Oolite
exists and to use it instead if it does -- or is it a good idea to move ~/.Oolite
to one of the above directories automatically?
As only two places in the code use ~/.Oolite
(the logger and the addon manager), this seems like a fairly simple fix. I could try and make a pull request (though I don't really know Objective-C, so it might take some time).