Skip to content

FIX : XDG : Use XDG_DATA_HOME when this is set#3

Open
chdka wants to merge 1 commit into
skeeto:masterfrom
chdka:xdg
Open

FIX : XDG : Use XDG_DATA_HOME when this is set#3
chdka wants to merge 1 commit into
skeeto:masterfrom
chdka:xdg

Conversation

@chdka

@chdka chdka commented Jun 12, 2026

Copy link
Copy Markdown

I've found a missing XDG functionality.

When the environment variable XDG_DATA_HOME is set on Windows this was not used.
The database was written to APPLOCAL, I've set the variables XDG_CONFIG_HOME and XDG_DATA_HOME.
XDG_CONFIG_HOME was used as expected, but XDG_DATA_HOME was not evaluated.

Therefore I've changed the routine user_data_dir() to evaluate XDG_DATA_HOME when it is present.

When the environment variable $XDG_DATA_HOME is set on windows then use this.
Like XDG_CONFIG_HOME this already used for the configuration.
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

Successfully merging this pull request may close these issues.

1 participant