Closed mafw closed 3 years ago
One keyring install did not have the required system libraries available, this is why it does not support the secret service backend. Reinstall/recompile it with once you have the system libs.
OK this makes sense. When I reinstall the package I get the same error for the user package library. How do I check which libraries are missing? I am not getting any error saying I am missing libraries when installing the package and the keyring is working outside R.
Seems like you need libsecret-1-dev
on Ubuntu.
My bad, there is a message when installing the package that on Ubuntu you should install libsecret-1-dev
. I removed the keyring packaged, installed this library and then reinstalled keyring and now it works. Thanks and sorry about the confusion!
I am trying to use the keyring package on Ubuntu 20.04 to get passwords stored in my keyring. Unfortunately the
backend_secret_service$new()$is_available()
function cannot find the secret service daemon on Linux if thekeyring
package is loaded from a local library within a project. This causes the package to default to using environmental variables and throws the following warning:This in turn means that I cannot access secrets stored in the GNOME keyring using the
key_get()
function.I can solve this problem by loading the keyring package from the default user R library instead of the project library. I use the
renv
package to create the local library.Keyring also finds secret service if I simply load it outside a project, which makes sense since the package is then loaded from the user library by default.
My first thought is that this has something to do with permissions on Linux? I use the keyring package on a Windows 10 machine without this problem.