99designs / 99designs/keyring

headless linux throwing an error

未關閉
#106 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Go
星號
657
分支
155
PR 合併指標
30 天內沒有已合併 PR

描述

when running this sample of code on headless linux (CentOS Linux release 8.4.2105)
``
ring, _ := keyring.Open(keyring.Config{
ServiceName: "example",
})

err = ring.Set(keyring.Item{
Key: "foo",
Data: []byte("secret-bar"),
})

if(err != nil) {

log.Fatal(err)

}

i, _ := ring.Get("foo")

fmt.Printf("%s", i.Data](url))
``
i get this error message : No such interface 'org.freedesktop.DBus.Properties' on object at path /

also when trying the below:

dbus-run-session -- sh
gnome-keyring-daemon --unlock
password CTRL-D

then run the above code i again still getting an error
No such interface 'org.freedesktop.Secret.Collection' on object at path /org/freedesktop/secrets/collection/login

any idea how to make the above code working with headless linux ?

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。