【发布时间】:2019-05-06 18:37:10
【问题描述】:
我在 CentOS 7 服务器上安装了 Git 和 libsecret。我使用 git-credentials-store 将我的凭据以明文形式存储在服务器上。现在我想使用 libsecret,但不幸的是,如果我将 git-credential-libsecret 配置为凭证助手,我会遇到 D-Bus 错误。
我已经安装了 dbus 和 dbus-x11 并通过以下命令启动了 dbus,但我仍然遇到错误。
dbus-launch --sh-syntax
错误:
$ git pull origin master
** (process:66155): CRITICAL **: 08:19:33.936: could not connect to Secret Service: Cannot autolaunch D-Bus without X11 $DISPLAY
** (process:66160): CRITICAL **: 08:19:34.209: store failed: Cannot autolaunch D-Bus without X11 $DISPLAY
编辑:
安装 gnome-keyring 后出现以下错误
** 消息:14:10:49.566:来自秘密服务的远程错误:org.freedesktop.DBus.Error.UnknownMethod:路径 /org/freedesktop/ 的对象上没有此类接口“org.freedesktop.Secret.Collection”秘密/收藏/登录
【问题讨论】: