Gio.Settings.prototype.set_strv
function set_strv(key: String, value: Array(String)): Boolean { // Gjs wrapper for g_settings_set_strv() }
Sets key in settings to value.
A convenience variant of Gio.Settings.set for string arrays. If value is null, then key is set to be the empty array.
It is a programmer error to give a key that isn't specified as having an array of strings type in the schema for settings.
Since 2.26
- key
the name of the key to set
- value
the value to set it to, or null
- Returns
true if setting the key succeeded, false if the key was not writable