by kelnos · 16y ago · 0 comments
False. Go ahead and cat a few files in /etc/:
nsswitch.conf: key/value, separated by colon. Lists of values are space-separated
fstab: per-line record-based, 6 space-separated fields
passwd: per-line record-based, 7 colon-separated fields
fuse.conf: key/value, separated by equals sign
hdparm.conf: hierarchical, using curly braces; inside that, key/value, separated by equals sign
What "standard" are you referring to?
- Apache: hierarchical key/value, separated by space. Hierarchy can be started and ended with XML-like-but-not-quite syntax, where the hierarchy container itself can contain a value.
- Nginx: hierarchical key/value, separated by space. Hierarchies can be started and ended with brackets.
- screenrc: key and one or multiple values, separated by space.
- nanorc: key/value, separated by space.
- /etc/network/*: shell scripts.
- inittab: ??? no idea what the formal syntax is.
People who complain about GConf with the reason that "/etc is superior" usually have no clue how things really work, yet they still behave like they're experts.
I see nothing wrong in each program storing configuration data in the most convenient way for them.
For Gnome applications there could be standard APIs. And, as a bonus, they should store the configuration data in plain text files according to whatever format Gnome finds convenient, but not making us use specific tools to edit it, much like the Founding Fathers of Unix didn't tie config files to ed.
Which is how GConf will look in 10 years.
It's not nearly as bad a solution than the Windows Registry, but it's not perfect either and has some good chances it's not a step in the right direction.
There is no One True Way. Only a bunch of good ways, a bunch of bad ways, and a bunch of sorta-ok ways. Just because there isn't one amazing way that is obviously the best, it doesn't mean that the alternative is for everyone to use different, incompatible formats.
"I see nothing wrong in each program storing configuration data in the most convenient way for them."
Clearly you've never had to administer systems before. Or, if you have, you're so used to it at this point, you don't remember what it was like when you were starting.
I would much prefer to only have to understand and remember a single config file format and save my time and effort for things that actually matter.
But yes, I'm a hypocrite: I designed and implemented Xfce 4.6's configuration storage system... yet another incompatible format.
And as someone else mentioned, the files are plain XML that you can edit with a text editor. No special tools.