No such interface 'org.freedesktop.Secret.Collection' on object at path /org/freedesktop/secrets/collection/login
winteraz opened this issue · 6 comments
The example from the readme file throws an error on
keyring.Set(service, user, password)``:
No such interface 'org.freedesktop.Secret.Collection' on object at path /org/freedesktop/secrets/collection/login
Any idea why is that? If I run it with sudo the program just get stuck
package main
import (
"log"
"github.com/zalando/go-keyring"
)
func main() {
service := "my-app"
user := "anon"
password := "secret"
// set password
err := keyring.Set(service, user, password)
if err != nil {
log.Fatal(err)
}
// get password
secret, err := keyring.Get(service, user)
if err != nil {
log.Fatal(err)
}
log.Println(secret)
}
uname -a
Linux ubuntu 4.8.0-36-generic #36~16.04.1-Ubuntu SMP Sun Feb 5 09:39:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Same here. Amazon Linux 2 (AWS Linux Workspace), gnome-keyring is installed.
Same here, ubuntu 18.04 and gnome-keyring is installed.
Does it help to create it maually as described here? https://github.com/zalando/go-keyring#linux
Take a look at: #45 where I've managed to get it running on docker with Ubuntu 18.04.