Re: Abort while accessing a non-existing Settings schema?



hi;

On 28 May 2011 23:56, 俞颐超 <yyc1992 gmail com> wrote:
> gjs (and also seed, I don't know about other language binding) always
> abort while accessing a non-existing Settings schema, and it seems
> that I cannot even catch this exception. This always crash my
> gnome-shell when a extension that use schema is not installed under
> root or haven't run glib-compile-schemas in advance.
>
> Is there any reason to be like this

yes, it's working as intended.

see the (latest) thread about this on gtk-devel:

  http://mail.gnome.org/archives/gtk-devel-list/2011-May/msg00099.html

> or is there a better way to avoid
> crashing? (check if the schema exist before using it?)

this is not something specific to javascript applications, but to
applications with plugins running within the application space (and
not, for instance, with out-of-process plugins); these applications
should check for the existence of the plugin schema before either
creating the GSettings object to pass to the plugin, or instantiating
the plugin itself.

ciao,
 Emmanuele.

-- 
W: http://www.emmanuelebassi.name
B: http://blogs.gnome.org/ebassi/


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