Array manipulation in gsettings' set command

Posted by Daniel on Ask Ubuntu See other posts from Ask Ubuntu or by Daniel
Published on 2012-08-27T18:46:11Z Indexed on 2012/08/27 21:56 UTC
Read the original article Hit count: 222

Filed under:
|

Is there an easy way to do array manipulation in gsettings? I am comparing gsettings to OS X's defaults command that offers the defaults domain --array key overwrite-value and defaults domain --array-add key added-value interface for manipulating arrays.

As far as I can tell there is only gsettings set domain key "['overwrite-value']" available to gsettings. Not really pretty for when you want to add or remove one entry from an array.

I have seen a suggestion that allow me to add to an array, but I would rather use a interface if there is one.

© Ask Ubuntu or respective owner

Related posts about gnome

Related posts about gsettings