ripasso
ripasso copied to clipboard
error: failed to locate password directory.
$ ripasso
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Generic("failed to locate password directory")', cursive/src/main.rs:1383:73 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
$ export RUST_BACKTRACE=full && ripasso
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Generic("failed to locate password directory")', cursive/src/main.rs:1383:73 stack backtrace: 0: 0x5a2de707c0 - <unknown> 1: 0x5a2de8881c - <unknown> 2: 0x5a2de6ca60 - <unknown> 3: 0x5a2de71c58 - <unknown> 4: 0x5a2de71928 - <unknown> 5: 0x5a2de72368 - <unknown>
6: 0x5a2de71f08 - <unknown> 7: 0x5a2de708c4 - <unknown> 8: 0x5a2de71e70 - <unknown> 9: 0x5a2de87894 - <unknown>
10: 0x5a2de877e0 - <unknown> 11: 0x5a2d97ce54 - <unknown> 12: 0x5a2d9b34e4 - <unknown> 13: 0x5a2d9d083c - <unknown>
14: 0x5a2d97fdb0 - <unknown> 15: 0x5a2d936464 - <unknown> 16: 0x5a2de72510 - <unknown>
17: 0x5a2d93643c - <unknown>
18: 0x5a2d9b5fa8 - <unknown> 19: 0x71d625f784 - <unknown> 20: 0x0 - <unknown>
I am guessing that this may be due to my password-store not being in the default location (~/.password-store), mine is located at ~/.pass instead, this is done by exporting the PASSWORD_STORE_DIR variable.
Could it be that ripasso is not looking for this variables existence?? and instead looking for its default path??
Thanks again, this looks like just what I need! (currently I use fzf to list/select my entries)
OK, just tested my theory and its correct!
Moved it to ~/password-store and now ripasso finds it.
Perhaps, look for the PASSWORD_STORE_DIR from now on as to avoid this problem.
Off-topic but perhaps it will save me opening another issue, my interface has a grey background (doesnt match my dark-black background set by my terminals theme) can I turn styling off or altleast modify it to #262626 to match my theme? or is this behaviour not expected? (i.e a bug)?
Thanks!
This looks like a regression, we should support the PASSWORD_STORE_DIR env. variable. Thanks for for reporting this, i'll investigate this.
Regarding the theme, if you build from source you can configure another theme in your ~/.config/ripasso/settings.toml file like this:
[stores]
[stores.default]
path = "/home/user/.pass/"
style_path = "/home/user/.config/ripasso/hackeriet-style.toml"
here is an example config file: https://github.com/cortex/ripasso/blob/master/cursive/res/style.toml