我在 Ubuntu 16.04 中运行 Python 脚本时遇到这个错误:
GLib.Error: g-io-error-quark: Error calling StartServiceByName for org.freedesktop.secrets:
Timeout was reached (24)
代码:
import gi
gi.require_version('Secret', '1')
from gi.repository import Secret
flags = Secret.ServiceFlags.LOAD_COLLECTIONS
service = Secret.Service.get_sync(flags)
最佳答案
自己回答。
这是与 key 环相关的问题,因此当您通过 SSH 调用服务时会发生这种情况。
关于python - Ubuntu 中的 Secret.Service 超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55006539/