Secret.Item.prototype.set_attributes_sync
function set_attributes_sync(schema: Secret.Schema, attributes: {String: String}, cancellable: Gio.Cancellable): Boolean { // Gjs wrapper for secret_item_set_attributes_sync() }
Set the attributes of this item.
The attributes are a mapping of string keys to string values. Attributes are used to search for items. Attributes are not stored or transferred securely by the secret service.
This function may block indefinetely. Use the asynchronous version in user interface threads.
- schema
the schema for the attributes
- attributes
a new set of attributes
- cancellable
optional cancellation object
- Returns
whether the change was successful or not