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.
No,
gsettings
doesn't support any array operations except getting and setting the whole array.