Secret.Collection.prototype.set_label_sync

function set_label_sync(label: String, cancellable: Gio.Cancellable): Boolean {
    // Gjs wrapper for secret_collection_set_label_sync()
}
  

Set the label of this collection.

This function may block indefinetely. Use the asynchronous version in user interface threads.

label

a new label

cancellable

optional cancellation object

Returns

whether the change was successful or not