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

[REQUEST] Move logging out of $XDG_CONFIG_HOME #1019

Open
bloxx12 opened this issue Jan 19, 2025 · 0 comments
Open

[REQUEST] Move logging out of $XDG_CONFIG_HOME #1019

bloxx12 opened this issue Jan 19, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@bloxx12
Copy link

bloxx12 commented Jan 19, 2025

btop logs to $XDG_CONFIG_HOME/btop/btop.log. This does not follow the XDG Base Directory Specification and is generally unexpected behavior.

Is your feature request related to a problem? Please describe.
I for example, set btop's $XDG_CONFIG_HOME to a location which is not writable, which it complains about every time I start it:

Image

Describe the solution you'd like
This could, for example, be moved to $XDG_STATE_HOME or $XDG_CACHE_HOME:

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, …)
  • current state of the application that can be reused on a restart (view, layout, open files, undo history, …)

$XDG_CACHE_HOME defines the base directory relative to which user-specific non-essential data files should be stored.

This woud be much more intuitive, since $XDG_CONFIG_HOME is not meant for logging in the first place.

@bloxx12 bloxx12 added the enhancement New feature or request label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants