Ah nice. Didn't know that individual compiled files could be used (as opposed to one gigantic one - /usr/share/glib-2.0/schemas/gschemas.compiled).
On Fri, Dec 9, 2011 at 6:32 AM, Giovanni Campagna <[email protected] > wrote: > Il giorno ven, 09/12/2011 alle 04.35 -0500, David Collins ha scritto: > > Just out of curiosity, how will the gsettings schemas be compiled ? Will > > 'glib-compile-schemas' run everytime a new extension is installed? > > You mean in the glorious 3.4 future? > Extensions are expected to come with a gschema.compiled file themselves > (one in each extension directory). There are patches somewhere to make > the shell compile schemas when loading extensions, but they're not > merged yet. > > Giovanni > > > Thanks! > > On Dec 9, 2011 3:34 AM, "Bastien Durel" <[email protected]> wrote: > > > > > Le jeudi 08 décembre 2011 à 23:12 +0100, Giovanni Campagna a écrit : > > > > Il giorno gio, 08/12/2011 alle 23.05 +0100, Bernd Schlapsi ha > scritto: > > > > > Hello, > > > > > > > > > > how do I correctly define/create an extension which uses gsettings > to > > > > > store some extension spezific settings? > > > [...] > > > > The short answer: you cannot. > > > > The long answer: you cannot in gnome 3.2 (glib 2.30), as GSettings > needs > > > > schemas that are installed in $XDG_DATA_DIRS, and any other location > > > > will cause a crash. You can support gnome 3.4 (starting from 3.3.2 / > > > > glib 2.31.4 IIRC), using GSettingsSchemaSource. > > > > You can find an example of this at > > > > > > > > http://git.gnome.org/browse/gnome-shell-extensions/tree/lib/convenience.js > > > > > > Actually, if you add $HOME/.local/share in the $XDG_DATA_DIRS variable, > > > gsettings will find schemas installed there. > > > This had to be defined before gnome-shell is run, > > > so /etc/X11/Xsession.d/ or /etc/X11/Xsession is a good place for that. > > > The drawback is you cannot rely on this if you want other users use > your > > > extension ;) > > > > > > My 2 cents, > > > > > > -- > > > Bastien Durel > > > > > > _______________________________________________ > > > gnome-shell-list mailing list > > > [email protected] > > > http://mail.gnome.org/mailman/listinfo/gnome-shell-list > > > > > _______________________________________________ > > gnome-shell-list mailing list > > [email protected] > > http://mail.gnome.org/mailman/listinfo/gnome-shell-list > >
_______________________________________________ gnome-shell-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gnome-shell-list
