spesmilo / electrum

Electrum Bitcoin Wallet
https://electrum.org
MIT License
7.42k stars 3.08k forks source link

Support the XDG base directory specification on Linux #5716

Open cdutsov opened 5 years ago

cdutsov commented 5 years ago

It would be nice to support the XDG base directory specification [0] on Linux. Right now the configurations and data are in ~/.electrum but it would be nice if it could, for example, first search in $XDG_CONFIG_HOME/electrum and if it doesn't exist then fallback to ~/.electrum . It makes for easier back-ups and a cleaner $HOME.

[0] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

SomberNight commented 5 years ago

I guess this is a duplicate of https://github.com/spesmilo/electrum/pull/1636 ? Could you please read that discussion and maybe comment there about the points that were raised there (if it is indeed a duplicate)?