Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please allow setting datadir. #329

Open
zander opened this issue Jan 17, 2023 · 1 comment
Open

Please allow setting datadir. #329

zander opened this issue Jan 17, 2023 · 1 comment

Comments

@zander
Copy link

zander commented Jan 17, 2023

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
Copy link
Author

zander commented Jan 17, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant