Re: About gsettings aborting on unkown schemas



IMHO it is a problem in gnome shell, it should provide some api to 
create the settings for the plugins and in this api check that the
settings really exists and do not enable the plugin in that case.
But as said in some comment this is under development to provide
dynamic place for setting on plugins etc.

Regards.

On Fri, May 27, 2011 at 7:23 PM, ecyrbe <ecyrbe gmail com> wrote:
2011/5/27 Milan Bouchet-Valat <nalimilan club fr>
Le vendredi 27 mai 2011 à 08:51 -0700, Hubert Figuiere a écrit :
> First, if the UI file is missing the application does not abort. There
> is an error but it can be handled by the application, and eventually
> recovered gracefuly. I deleted all the UI files and my app didn't crash.
> Sure it was not very functional but I actually had the opportunity to
> show a proper error message to the user. Not a crash.
That's already what you get:
   g_error ("Settings schema '%s' is not installed\n", name);

I really can't imagine what you could do from a program missing its
schemas, except if you hardcode (i.e. duplicate) all default values in
the code to handle this broken case

This is true for a single application with no plugin (crappy plugins?) hierarchy.
But with plugins, you need to prevent youself from crashing because plugins
do not make the whole application unusable!

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list




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