Function: secrets-collection-path
secrets-collection-path is a byte-compiled function defined in
secrets.el.gz.
Signature
(secrets-collection-path COLLECTION)
Documentation
Return the object path of collection labeled COLLECTION.
If COLLECTION is nil, return the session collection path. If there is no such COLLECTION, return nil.
Source Code
;; Defined in /usr/src/emacs/lisp/net/secrets.el.gz
(defun secrets-collection-path (collection)
"Return the object path of collection labeled COLLECTION.
If COLLECTION is nil, return the session collection path.
If there is no such COLLECTION, return nil."
(or
;; The "session" collection.
(if (or (null collection) (string-equal "session" collection))
secrets-session-collection-path)
;; Check for an alias.
(let ((collection-path
(dbus-call-method
:session secrets-service secrets-path
secrets-interface-service "ReadAlias" collection)))
(unless (secrets-empty-path collection-path)
collection-path))
;; Check the collections.
(catch 'collection-found
(dolist (collection-path (secrets-get-collections) nil)
(when (string-equal
collection
(secrets-get-collection-property collection-path "Label"))
(throw 'collection-found collection-path))))))