Use the configured home directory to find the keystore.

- Respect `--home` when locating the keystore.

  - Fixes e75ad72c65.
This commit is contained in:
Neal H. Walfield 2024-05-28 13:46:22 +02:00
parent 22cc90e11f
commit f4fe306093
No known key found for this signature in database
GPG Key ID: 6863C9AD5B4D22D3

View File

@ -332,8 +332,7 @@ impl<'store: 'rstore, 'rstore> Sq<'store, 'rstore> {
} else if let Some(dir) = self.key_store_path.as_ref() {
Ok(Some(dir.clone()))
} else {
let home = sequoia_directories::Home::new(None)?;
Ok(Some(home.data_dir(sequoia_directories::Component::Keystore)))
Ok(Some(self.home.data_dir(sequoia_directories::Component::Keystore)))
}
}