Use different directory for database
We currently store the database in ~/.briar/desktop
. It seems this might not be the best location.
@grote already raised the idea to use a directory either in ~/.config
or ~/.local/share/
. The email from the person wanting to build for flathub suggests something similar: "$XDG_CONFIG_HOME, defaulting to ~/.config/", also mentioning the freedesktop specs: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html#variables
I think a config directory doesn't seem like a good place to store our database as it's less of a configuration but rather user data mostly. Looking at the spec, I think using $XDG_DATA_HOME
and defaulting to $HOME/.local/share
would be the thing to do maybe.
In the mailbox we're using $HOME/.local/share/briar-mailbox
currently, so in consistency with that, $HOME/.local/share/briar-desktop
might be good?
So $XDG_DATA_HOME/briar-desktop
in case $XDG_DATA_HOME
is defined and $HOME/.local/share/briar-desktop
otherwise.