nazarewk/keyring_pass

Invalid directory created when key-prefix set to '' --- works with . (dot)

Closed this issue · 3 comments

Got a chance to test new version v0.7.0 of keyring_pass.

The config file (~/.config/python_keyring/keyringrc.cfg) contains
[pass]
key-prefix=.

With key-prefix=. the password ends up at local/monkey -- which is correct.

According to the documentation, key-prefix='' should also have worked but did not -
I got a directory named ''/local/monkey at the top of tree which was not intended:

pass
Password Store
├── ''
│ └── local
│ └── monkey
│ └── foo
OTHER ENTRIES ELIDED

ini/cfg files do not have a concept of quoted string, everything after the equal sign is a string, you can try writing simply key-prefix= without anything else in the line.

Mistakenly reported NOTABUG - closing.

Thank you for quick reply.