toxcore
toxcore copied to clipboard
Use a less breaking config file format
A plain text config file (~/.config/tox/data) would be great; it would allow people to back it up, or rework config issues. The current binary data approach makes people lose data (like from the first to end of february, where friends lists were wiped), without any easy way to recover it, even from backups.
I agree.
The reason it's unportable binary right now is because it's much much simpler to save/load it this way.
It's always nice to be able to read the config files.
@irungentoo There is a YAML library for literally everything now. And YAML is pretty readable IMHO.
JSON is possible though in my opinion YAML is more readable.
Ah, the good ol' YAML vs JSON debate has afflicted Tox :)
On Jun 2, 2014 1:23 AM, "Kieran Coldron" [email protected] wrote:
Why not XML?
Why not plain old ini file?
If JSON allowed trailing spaces in multi-line arrays like so:
{
"key1": "value1",
"key2': "value2",
}
Then I'd be more than all for it.
Until they fix that, what about all of the above ;)
Not sure if serious, but isn't that character encoding?
Even more simple. Plain-text ASCII files.
toml is pretty readable. It's unstable though.
This seems to be related to #1369.
the main argument against JSON is that it does not allow comments. means I can not just comment a line to have it ignored.
Use YAML then.