[Sugar-devel] Little bits of atomicity...

Tomeu Vizoso tomeu at sugarlabs.org
Tue Feb 17 04:45:03 EST 2009

On Wed, Feb 11, 2009 at 06:35, Martin Langhoff
<martin.langhoff at gmail.com> wrote:
> Hacking on bits of Browse is taking me down the path of reading
> various random bits of Sugar. And I wanted to drop a quick note...
> Modern POSIX systems give us a cheap safe atomic way of dealing with
> updates to small files: write to a tempfile and move it into place.
> Opening a critical file in place for update is fraught with problems,
> specially on a device where power is not guaranteed...
>  ... like a schoolserver or a laptop...
> (That's the mantra I've taken with the XS. All the code must be failsafe.)
> Anyway, I tried to craft a patch for profile.py, only to find it's now
> gone gconf. So no patch today :-/
> Having switched to gconf, I wonder, is there a plan for what to do
> when people need to fiddle with their Sugar config stuff? gconftool is
> significantly harder to use than nano or vi.

I think that the gconf backend we use is based on plain files. See ~/.gconf



More information about the Devel mailing list