Re: About gsettings aborting on unkown schemas



2011/5/27 Emmanuele Bassi <ebassi gmail com>
On 2011-05-27 at 11:04, Morten Welinder wrote:
> > you can say that all you want, but it's absolutely *not* a bug.
>
> Of course it is.  With this bug, programs crash where they other-
> wise could limp on.

potentially eating away data? without schema you don't have a default to
fall back to for application preferences and for state. it might end up
deleting existing account data, for instance. or eating your files.


nope, what you don't seems to understand is that you don't let the calling program deal with it. With this behavviour
you now have to protect your code from crashing by checking everytime that the schemas (or even the key) exists.
No data is eaten if the calling application show a gracefull message and exit from itself.

> It's like changing all g_return_if_fail calls into asserts

no, it's nothing like that.


And it's like what? your argumentation is empty.
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]