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

error: failed to locate password directory. #192

Open
nerd190 opened this issue Feb 19, 2021 · 2 comments
Open

error: failed to locate password directory. #192

nerd190 opened this issue Feb 19, 2021 · 2 comments

Comments

@nerd190
Copy link

nerd190 commented Feb 19, 2021

$ 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)

@nerd190
Copy link
Author

nerd190 commented Feb 19, 2021

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!

@alexanderkjall
Copy link
Collaborator

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

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