Function: secrets-lock-collection

secrets-lock-collection is a byte-compiled function defined in secrets.el.gz.

Signature

(secrets-lock-collection COLLECTION)

Documentation

Lock collection labeled COLLECTION.

If successful, return the object path of the collection.

Source Code

;; Defined in /usr/src/emacs/lisp/net/secrets.el.gz
(defun secrets-lock-collection (collection)
  "Lock collection labeled COLLECTION.
If successful, return the object path of the collection."
  (let ((collection-path (secrets-collection-path collection)))
    (unless (secrets-empty-path collection-path)
      (secrets-prompt
       (cadr
	(dbus-call-method
	 :session secrets-service secrets-path secrets-interface-service
	 "Lock" `(:array :object-path ,collection-path)))))
    collection-path))