Secret.Service.prototype.set_alias_sync

function set_alias_sync(alias: String, collection: Secret.Collection, cancellable: Gio.Cancellable): Boolean {
    // Gjs wrapper for secret_service_set_alias_sync()
}
  

Assign a collection to this alias. Aliases help determine well known collections, such as 'default'.

If service is NULL, then Secret.Service.get_sync will be called to get the default Secret.Service proxy.

This method may block and should not be used in user interface threads.

alias

the alias to assign the collection to

collection

the collection to assign to the alias

cancellable

optional cancellation object

Returns

true if successful