diff options
Diffstat (limited to 'src/pinentry.rs')
-rw-r--r-- | src/pinentry.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pinentry.rs b/src/pinentry.rs index 69bf92c..9711585 100644 --- a/src/pinentry.rs +++ b/src/pinentry.rs @@ -3,12 +3,13 @@ use crate::prelude::*; use tokio::io::AsyncWriteExt as _; pub async fn getpin( + pinentry: &str, prompt: &str, desc: &str, err: Option<&str>, tty: Option<&str>, ) -> Result<crate::locked::Password> { - let mut opts = tokio::process::Command::new("pinentry"); + let mut opts = tokio::process::Command::new(pinentry); opts.stdin(std::process::Stdio::piped()) .stdout(std::process::Stdio::piped()); if let Some(tty) = tty { |