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

Honor Freedesktop XDG base spec #6933

Open
gerardbosch opened this issue Oct 19, 2023 · 5 comments
Open

Honor Freedesktop XDG base spec #6933

gerardbosch opened this issue Oct 19, 2023 · 5 comments

Comments

@gerardbosch
Copy link

gerardbosch commented Oct 19, 2023

Description

The Freedesktop XDG base spec seems not to be totally honored. I explain myself:

Just after installing and running of Bisq for the first time, I noticed that the ~/.local/share/Bisq/ directory took 568 MB. This is specially important because I'm doing an automated cloud backup of my homedir on daily basis, based on XDG spec to only backup user files. So I had to add an exclusion to my backup for this directory after realizing of this, to avoid incurring on extra or unnecessary backup cost.

The XDG_DATA_HOME should be for user data, but the initial 568 MB are from the Bitcoin network. In essence, this seems not to be user data, but data that can be recreated.

From https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

$XDG_CACHE_HOME defines the base directory relative to which user-specific non-essential data files should be stored. If $XDG_CACHE_HOME is either not set or empty, a default equal to $HOME/.cache should be used.

$XDG_DATA_HOME defines the base directory relative to which user-specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share should be used.

So I think that the XDG_CACHE_HOME dir would be more appropriate for the Bitcoin database, Tor, and/or other non-user data that can be fetched or recreated than the currently used XDG_DATA_HOME.

image

Version

1.9.14

Steps to reproduce

Install Bisq from the official DEB and run it for the first time.

Expected behaviour

The XDG_DATA_HOME would contain user-specific data.

Actual behaviour

The XDG_DATA_HOME contains more than 500 MB of that that is not user-specific and can be recreated.

Screenshots

n/a

Device or machine

Linux

Additional info

n/a

@boring-cyborg
Copy link

boring-cyborg bot commented Oct 19, 2023

Thanks for opening your first issue here!

Be sure to follow the issue template. Your issue will be reviewed by a maintainer and labeled for further action.

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@gerardbosch
Copy link
Author

no-stale

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@gerardbosch
Copy link
Author

no-stale

Waiting for triage.

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