headless linux throwing an error
- 主要語言
- 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 還沒有評估資料。