Open sanderfoobar opened 5 years ago
I think an exception can also be made for the wallet directory, which currently is ~/Monero/wallets
. This would become /home/dsc/.local/share/Monero/wallets
but I think that ~/Documents/Monero
is more appropriate.
@rnhmjoj thoughts?
I think an exception can also be made for the wallet directory
I agree, since users more often access the wallet it's better to keep the directory visible, so ~/Monero is fine in my opinion. Besides monero let you choose where to save the wallet at the start.
On my computer the cache and configuration files are
$XDG_CONFIG_HOME/monero-project/monero-core
$XDG_CACHE_HOME/monero-project/monero-core
so they seems already compliant. I would simplify monero-project/monero-core
to just monero
, which I think is a bit ugly. I suspect this is added by Qt when setting the company/project name.
The tricky part will be changing .bitmonero because it's also used by the monero daemon.
Summing it up, I propose something like this:
$XDG_CONFIG_HOME/monero/ -> configuration files
$XDG_CACHE_HOME/monero/ -> qml cache, daemon and gui logs
$XDG_DATA_HOME/monero/ -> blockchain data
$HOME/Monero -> wallets
Anyway, if you intend to change the locations I'd suggest to implement a check for the old locations (like .bitmonero) and, if needed, move the content to the new location. This should make the transition painless. Also, thank you for considering the idea.
Maybe the wallet location could also be configurable with a line in one of the configuration files, as well.
GUI seems also leave ~/.shared-ringdb
in home. It should also be moved to $XDG_DATA_HOME
or $XDG_CACHE_HOME
.
That might belong into XDG_STATE_HOME
now that that is out
~/Documents/Monero
is definitely not an appropriate path for anything. I interact with many programs in $XDG_DATA_HOME
regularly without issues.
At least use XDG_DOCUMENTS_DIR
(obtainable via xdg-user-dir DOCUMENTS
) as prefix then.
As of version 0.18.1.2, this is still an issue.
~/.bitmonero
is still created and bitmonero.log
file is created within that folder, even despite monero-gui being started with --log-file=/dev/null
launch option. I've decided to just discard logs as it's more convenient for me than doing dirty workarounds to apply XDG variables within monero-gui's .desktop file. Note that it's a different file from monero-wallet-gui.log
that is no longer created at all after applying launch options.
~/.shared-ringdb
is still being created with seemingly no way to change it's location.
GUI currently uses the following files and directories:
~/Monero
~/.bitmonero
~/.bitmonero/monero-wallet-gui.log
~/.config/monero-project/monero-core.conf
~/.local/share/applications/monero-gui.desktop
~/.local/share/Trash/files/
and~/.local/share/Trash/info/
Quoting rnhmjoj
This issue proposes to discuss that GUI related files could go into
$XDG_{CACHE,DATA,CONFIG}_HOME
(except for~/.bitmonero
) so that it follows the XDG spec.