Function: secrets-open-session
secrets-open-session is a byte-compiled function defined in
secrets.el.gz.
Signature
(secrets-open-session &optional REOPEN)
Documentation
Open a new session with "plain" algorithm.
If there exists another active session, and REOPEN is nil, that
session will be used. The object path of the session will be
returned, and it will be stored in secrets-session-path.
Source Code
;; Defined in /usr/src/emacs/lisp/net/secrets.el.gz
(defun secrets-open-session (&optional reopen)
"Open a new session with \"plain\" algorithm.
If there exists another active session, and REOPEN is nil, that
session will be used. The object path of the session will be
returned, and it will be stored in `secrets-session-path'."
(when reopen (secrets-close-session))
(when (secrets-empty-path secrets-session-path)
(setq secrets-session-path
(cadr
(dbus-call-method
:session secrets-service secrets-path
secrets-interface-service "OpenSession" "plain" '(:variant "")))))
(when secrets-debug
(message "Secret Service session: %s" secrets-session-path))
secrets-session-path)