kyoheiu / felix

tui file manager with vim-like key mapping
https://kyoheiu.dev/felix/
MIT License
708 stars 24 forks source link

logfile should in xdg_state_dir #224

Open Decodetalkers opened 1 year ago

Decodetalkers commented 1 year ago

I think log should put in here, this is where log file put

https://github.com/dirs-dev/dirs-rs/blob/main/src/lin.rs#L15

kyoheiu commented 1 year ago

Thanks for the suggestion.

I'm not sure if that's the best way to store log files. First, using ~/.local/state instead of ~/.local/share would increase the number of directories created by felix, which may not be desirable for some people. Additionally, macOS and Windows lack an equivalent to XDG_STATE_HOME, further complicating this issue.

For now, I'll stick with the current approach, but I'll keep my eye on this.