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

Problem with locked keyring #25

Closed
eliocamp opened this issue Apr 6, 2019 · 1 comment
Closed

Problem with locked keyring #25

eliocamp opened this issue Apr 6, 2019 · 1 comment

Comments

@eliocamp
Copy link
Collaborator

eliocamp commented Apr 6, 2019

I updated my OS and had to setup the keys again in my computer and was getting this error:

Secret service keyring error in 'set': 'Cannot create an item in a locked collection'

I had to use keyring::keyring_unlock() and then it worked. I'm not familiar with managing keyrings but, would it be necessary to add this command before adding (or retrieving?) keys?

@khufkens
Copy link
Member

khufkens commented Apr 7, 2019

Keyrings have the option to have a separate password from the main login. Depending on the system you might also not unlock it by default on login into your account. In most cases this does work.

So yes, for robustness we should add this. The keyring_is_locked() function returns TRUE/FALSE on the state of the lock. In this case if TRUE, we should call keyring_unlock() which will present a prompt for the password.

Fixed this here 8884c08

Simple if statements, don't think it warrants a separate function.

@khufkens khufkens closed this as completed Apr 7, 2019
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

2 participants