Revertron / Alfis

Alternative Free Identity System
https://alfis.name
GNU Affero General Public License v3.0
284 stars 28 forks source link

Please allow setting datadir. #329

Open zander opened 1 year ago

zander commented 1 year ago

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.

zander commented 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.