I want to modify a file like
/etc/gdm/custom.conf from the shell or a script.
# GDM configuration storage [xdmcp] [debug] [daemon] AutomaticLoginEnable=true; AutomaticLogin=username;
But the idea is that I can add a line to a section and it check if the section is defined, (add the definition if not), the property is defined, let it undefine (erase the line), (and delete the section header if there is no property defined), etc...
I didn't find anything except gconftool-2 but it do not explain how to modify other files. (there is a shema file there).