Open zander opened 1 year ago
Additionally, the app might benefit from a -datadir or similar argument, and the config file would then also have this.
This avoids the need to have the systemd file set the workingdir which is not the most standard way of defining where the data goes.
The alfis application currently stores the data in 'workingdir' (
pwd
), which is a bit unusual for apps that don't have a manual safe.I would like to suggest that you instead use the XDG directory spec for storing stuff.
Which basically means to use either the env-var
XDG_DATA_HOME
, or if that is unset use~/.local/share
as a basedir. Appended with/alfis/blockchain.db
.