cointop-sh / cointop

A fast and lightweight interactive terminal based UI application for tracking cryptocurrencies 🚀
https://cointop.sh
Apache License 2.0
3.98k stars 311 forks source link

Don't store app state in configuration file #238

Open matthiasbeyer opened 2 years ago

matthiasbeyer commented 2 years ago

Hi,

I'm tracking my configuration files in git. Using cointop with this approach is not nice (possible, but not nice) because cointop writes application state (favourite coins for example) to the configuration file... where it does not belong (IMHO).

State should be written to a state directory (XDG defines XDG_STATE_HOME, which would be a good place, IMO).

Could you change that? :smile:

Otherwise this is a nice application! :+1:

lyricnz commented 2 years ago

I kindof agree - it's annoying how cointop writes to the config file, and looses any comments or formatting, or anything it doesn't understand. We would need to define out the config->state override works carefully, though.