FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Desktop

 
 
LinkBack Thread Tools
 
Old 04-10-2011, 01:48 PM
Bruno Wolff III
 
Default Will gsettings eventually be able to modify lists?

It would be nice to use gsettings to add or remove an item from the
favorite-apps key without having to read the old list, parse it with
something, pass a modified list back to gsettings to replace the old
value.

Is there any plan for gsettings to get a feature to do this in one step?
--
desktop mailing list
desktop@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/desktop
 
Old 04-11-2011, 01:27 PM
Matthias Clasen
 
Default Will gsettings eventually be able to modify lists?

On Sun, 2011-04-10 at 08:48 -0500, Bruno Wolff III wrote:
> It would be nice to use gsettings to add or remove an item from the
> favorite-apps key without having to read the old list, parse it with
> something, pass a modified list back to gsettings to replace the old
> value.
>
> Is there any plan for gsettings to get a feature to do this in one step?

No immediate plan, no. I wouldn't necessarily reject a patch, but it is
a little hard to know where to stop, once you start down that route...
GSettings lets you store arbitrary variants.

--
desktop mailing list
desktop@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/desktop
 
Old 04-11-2011, 01:32 PM
Bruno Wolff III
 
Default Will gsettings eventually be able to modify lists?

On Mon, Apr 11, 2011 at 09:27:48 -0400,
Matthias Clasen <mclasen@redhat.com> wrote:
> On Sun, 2011-04-10 at 08:48 -0500, Bruno Wolff III wrote:
> > It would be nice to use gsettings to add or remove an item from the
> > favorite-apps key without having to read the old list, parse it with
> > something, pass a modified list back to gsettings to replace the old
> > value.
> >
> > Is there any plan for gsettings to get a feature to do this in one step?
>
> No immediate plan, no. I wouldn't necessarily reject a patch, but it is
> a little hard to know where to stop, once you start down that route...
> GSettings lets you store arbitrary variants.

I was afraid that the list structure was opaque to gsettings. That does
make it harder to start down that path, but isn't really a surprise.

The list format looks python friendly. I was a bit worried about writing
a script to use to process the changes in python for kickstart files,
but given that livecd-creator and anaconda both need python, it seems
pretty safe to assume python will be available where I need it.

Thanks for the response.
--
desktop mailing list
desktop@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/desktop
 
Old 04-11-2011, 01:44 PM
Matthias Clasen
 
Default Will gsettings eventually be able to modify lists?

On Mon, 2011-04-11 at 08:32 -0500, Bruno Wolff III wrote:
> On Mon, Apr 11, 2011 at 09:27:48 -0400,
> Matthias Clasen <mclasen@redhat.com> wrote:
> > On Sun, 2011-04-10 at 08:48 -0500, Bruno Wolff III wrote:
> > > It would be nice to use gsettings to add or remove an item from the
> > > favorite-apps key without having to read the old list, parse it with
> > > something, pass a modified list back to gsettings to replace the old
> > > value.
> > >
> > > Is there any plan for gsettings to get a feature to do this in one step?
> >
> > No immediate plan, no. I wouldn't necessarily reject a patch, but it is
> > a little hard to know where to stop, once you start down that route...
> > GSettings lets you store arbitrary variants.
>
> I was afraid that the list structure was opaque to gsettings. That does
> make it harder to start down that path, but isn't really a surprise.
>
> The list format looks python friendly. I was a bit worried about writing
> a script to use to process the changes in python for kickstart files,
> but given that livecd-creator and anaconda both need python, it seems
> pretty safe to assume python will be available where I need it.
>
> Thanks for the response.

I don't really think you want to go down the route of wrapping a python
script around the gsettings cmdline tool. You should just use
introspection, and use gsettings directly from python, or whatever
language you prefer.

--
desktop mailing list
desktop@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/desktop
 

Thread Tools




All times are GMT. The time now is 09:46 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org