Secret.Service.prototype.load_collections_sync

function load_collections_sync(cancellable: Gio.Cancellable): Boolean {
    // Gjs wrapper for secret_service_load_collections_sync()
}
  

Ensure that the Secret.Service proxy has loaded all the collections present in the Secret Service. This affects the result of Secret.Service.prototype.get_collections.

You can also pass the Secret.ServiceFlags.load_collections to Secret.Service.get_sync in order to ensure that the collections have been loaded by the time you get the Secret.Service proxy.

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

cancellable

optional cancellation object

Returns

whether the load was successful or not