Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

headless linux throwing an error #106

Open
b03cmans opened this issue Jan 31, 2022 · 0 comments
Open

headless linux throwing an error #106

b03cmans opened this issue Jan 31, 2022 · 0 comments

Comments

@b03cmans
Copy link

b03cmans commented Jan 31, 2022

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant