Hacker News new | past | comments | ask | show | jobs | submit login

Because Registry / gconf et. al. provide cheap notifications of when a specific key changes. This is the reason that a registry-type solution is useful, as well as helps performance.

Your solution means that every app interested in a setting has to put a file change notification on the conf file, then reparse the entire thing and diff it to see what changed.




So expose that in a library. Most conf files are one of a few common formats, and it shouldn't really be a problem to reparse on change. The client app wouldn't have to know anything about the file, even, just get settings back in some standard format. That library seems like a weekend project for someone, with format plugins and other goodies to follow.


that library is gconf, you just need to implement a different backend by writing one of those format plugins you mentioned.


Oh. I had the impression that gconf only dealt with Gnome's internal "registry".


> Most conf files are one of a few common formats

That's not my experience.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: