Re: Question about gsettings in relation to gnome-shell extensions.
- From: Yaa101 <yaa101 xs4all nl>
- To: Clemens Eberwein <clemens lab21 org>
- Cc: "gnome-shell-list gnome org" <gnome-shell-list gnome org>
- Subject: Re: Question about gsettings in relation to gnome-shell extensions.
- Date: Tue, 17 Jul 2012 20:57:30 +0200
Thanks for the info Clemens.
Don't forget to reply-all when you reply, otherwise there will be no
copy of your answer in the mail list. :-)
--
(o_
//\ Regards, Groeten,
V_/_ Bas Burger.
On Tue, 17 Jul 2012 20:37:16 +0200
Clemens Eberwein <clemens lab21 org> wrote:
> Hi,
> You dont need the location just connect to settingsObj
> changed::"config-param-name". In the function you connect, get_string
> will return the new value.
> I use that in my extension. Extension.js enable. Where the
> keybindings are added.
> Am 17.07.2012 20:06 schrieb "Yaa101" <yaa101 xs4all nl>:
>
> > Thanks for the answers Jasper, you have seen that I answered also
> > myself.
> >
> > > > First of all, where on the filesystem can I find the gsettings
> > > > database?
> > >
> > > Depends on the backend. For the dconf backend, it's in
> > > ~/.config/dconf/user
> >
> > I want to know specific for extensions, just for my mental picture.
> >
> > So the convenience.js reads the compiled schema and hands it to the
> > script, that part is clear.
> >
> > But when I changed one of the keys of my schema, where is that
> > result stored?
> >
> >
> >
> > --
> > (o_
> > //\ Regards, Groeten,
> > V_/_ Bas Burger.
> >
> >
> > On Tue, 17 Jul 2012 12:56:09 -0400
> > "Jasper St. Pierre" <jstpierre mecheye net> wrote:
> >
> > > On Tue, Jul 17, 2012 at 11:01 AM, Yaa101 <yaa101 xs4all nl> wrote:
> > > >
> > > > Hi all,
> > > >
> > > > I like to know a few extra things about gsettings that I was not
> > > > able to find in google.
> > > >
> > > > First of all, where on the filesystem can I find the gsettings
> > > > database?
> > >
> > > Depends on the backend. For the dconf backend, it's in
> > > ~/.config/dconf/user
> > >
> > > > Second, I want to know how a gnome-shell extension react to it's
> > > > settings in the database.
> > > > Are the settings live, so that I can change a setting and that
> > > > the extension will automatically pick it up when it requests a
> > > > key/settings pair.
> > >
> > > Yes.
> > >
> > > > Or are the settings loaded once at the initialisation fase of
> > > > the extension and that the extension has to be reloaded to see
> > > > the new settings.
> > >
> > > No. But you have to connect to the setting to react to it.
> > >
> > > > Or is there a event fired when settings changed?
> > >
> > > Yes.
> > >
> > > > Third-related to the second question, is there a way to give a
> > > > command from or share info between the new gnome-shell extension
> > > > preferences box and the extension.
> > >
> > > No. It's designed to be launched from the web, where you cannot
> > > pass a command line parameter.
> > >
> > > > --
> > > > (o_
> > > > //\ Regards, Groeten,
> > > > V_/_ Bas Burger.
> > > > _______________________________________________
> > > > gnome-shell-list mailing list
> > > > gnome-shell-list gnome org
> > > > https://mail.gnome.org/mailman/listinfo/gnome-shell-list
> > >
> > >
> > >
> >
> > _______________________________________________
> > gnome-shell-list mailing list
> > gnome-shell-list gnome org
> > https://mail.gnome.org/mailman/listinfo/gnome-shell-list
> >
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]