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

influxdb-cli does not follow xdg base directory specification #514

Open
pavelskipenes opened this issue Jun 6, 2023 · 0 comments
Open

Comments

@pavelskipenes
Copy link

pavelskipenes commented Jun 6, 2023

TLDR; save history to $HOME/.local/state/influx/history if $XDG_STATE_HOME is not defined otherwise to $XDG_STATE_HOME/influx/history instead of $HOME/influx_history.

From XDG Base Directory Specification:

The XDG Base Directory Specification is based on the following concepts:

  • There is a single base directory relative to which user-specific state data should be written. This directory is defined by the environment variable $XDG_STATE_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, …)

Looks like relevant lines are around here:

c.historyFilePath = filepath.Join(historyDir, ".influx_history")

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