Skip to content

Unusual default location for config.json on Linux #16

@jdstrand

Description

@jdstrand

Using influx3 create on Linux results in the config.json being written to $HOME/Documents/influxdb3-cli/config/config.json, which is unusual for config data. This should be $HOME/.config/influxdb3-cli/config.json. I suggest:

  1. check if on Linux and if not, use your current filename. Else...
  2. check if XDG_CONFIG_HOME is set in the environment. If it is, use $XDG_CONFIG_HOME/influxdb3-cli/config.json. If not...
  3. default to $HOME/.config/influxdb3-cli/config.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions