toxcore icon indicating copy to clipboard operation
toxcore copied to clipboard

Use a less breaking config file format

Open viric opened this issue 11 years ago • 14 comments

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.

viric avatar Feb 23 '14 09:02 viric

I agree.

baltoche avatar Feb 23 '14 15:02 baltoche

The reason it's unportable binary right now is because it's much much simpler to save/load it this way.

irungentoo avatar Feb 23 '14 15:02 irungentoo

It's always nice to be able to read the config files.

aviau avatar Feb 23 '14 19:02 aviau

@irungentoo There is a YAML library for literally everything now. And YAML is pretty readable IMHO.

art-solopov avatar Jun 01 '14 17:06 art-solopov

JSON is possible though in my opinion YAML is more readable.

art-solopov avatar Jun 01 '14 21:06 art-solopov

Ah, the good ol' YAML vs JSON debate has afflicted Tox :)

ameenross avatar Jun 02 '14 00:06 ameenross

On Jun 2, 2014 1:23 AM, "Kieran Coldron" [email protected] wrote:

Why not XML?

Why not plain old ini file?

manuel-arguelles avatar Jun 02 '14 06:06 manuel-arguelles

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 ;)

ameenross avatar Jun 02 '14 12:06 ameenross

Not sure if serious, but isn't that character encoding?

ameenross avatar Jun 02 '14 15:06 ameenross

Even more simple. Plain-text ASCII files.

art-solopov avatar Jun 02 '14 15:06 art-solopov

toml is pretty readable. It's unstable though.

imv avatar Aug 07 '14 12:08 imv

This seems to be related to #1369.

codedust avatar Jul 11 '15 22:07 codedust

the main argument against JSON is that it does not allow comments. means I can not just comment a line to have it ignored.

cebe avatar Jul 11 '15 22:07 cebe

Use YAML then.

srkunze avatar Oct 23 '15 08:10 srkunze