chess-tui icon indicating copy to clipboard operation
chess-tui copied to clipboard

Config file storage

Open jarjk opened this issue 2 years ago • 1 comments

Description

As for now, the config file (containing chess-engine path) seems to be stored under $HOME/.chess-tui.

Expected behavior

It would be a lot better to store it under $HOME/.config/chess-tui/chess-engine.toml or something. The dirs crate fits the purpose to resolve this issue I think.

Environment

  • OS: Arch Linux
  • Terminal Emulator: Alacritty
  • Font: Recursive (patched)
  • Crate version: latest git
  • Backend: crossterm

jarjk avatar Mar 03 '24 11:03 jarjk

Oh, I see that dirs is already in use. I'll see whether I can fix this issue.

jarjk avatar Mar 04 '24 15:03 jarjk

Kinda resolved in #71, although it doesn't utilize dirs::config_dir().

jarjk avatar Jun 09 '24 10:06 jarjk