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

spurious log file in $XDG_CONFIG_HOME #138

Open
hydrargyrum opened this issue Oct 22, 2023 · 2 comments
Open

spurious log file in $XDG_CONFIG_HOME #138

hydrargyrum opened this issue Oct 22, 2023 · 2 comments

Comments

@hydrargyrum
Copy link

According to spec

$XDG_CONFIG_HOME defines the base directory relative to which user-specific configuration files should be stored

So this file should not be there: ~/.config/meteo-qt/meteo-qt.log

This is more suitable:

The $XDG_STATE_HOME contains state data that should persist between (application) restarts, but that is not important or portable enough to the user that it should be stored in $XDG_DATA_HOME. It may contain:

  • actions history (logs, history, recently used files, …)
@dglent
Copy link
Owner

dglent commented Oct 31, 2023

Thanks for underline this, it has been discussed again in the past here: #49 and i didn't change anything.
Maybe i didn"t understand correctly, i will check again

I don't have the $XDG_STATE_HOME in my env variables though in my system (mageia 9, lxqt)

@hydrargyrum
Copy link
Author

on many systems, XDG_* variables are not set, but per spec, apps should interpret default values in these cases: ~/.local/state/ for XDG_STATE_HOME. If XDG_CONFIG_HOME is not set, it should default to ~/.config.
XDG_STATE_HOME is more recent and less used than XDG_DATA_HOME

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

2 participants