diff options
-rw-r--r-- | CHANGELOG.md | 6 | ||||
-rw-r--r-- | src/pinentry.rs | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 133a056..98a49e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [Unreleased] + +### Fixed + +* The pinentry window now no longer times out. + ## [0.4.4] - 2020-06-23 ### Fixed diff --git a/src/pinentry.rs b/src/pinentry.rs index 9d866de..a215547 100644 --- a/src/pinentry.rs +++ b/src/pinentry.rs @@ -13,9 +13,9 @@ pub async fn getpin( .stdin(std::process::Stdio::piped()) .stdout(std::process::Stdio::piped()); let opts = if let Some(tty) = tty { - opts.args(&["-T", tty]) + opts.args(&["-T", tty, "-o", "0"]) } else { - opts + opts.args(&["-o", "0"]) }; let mut child = opts.spawn().context(crate::error::Spawn)?; // unwrap is safe because we specified stdin as piped in the command opts |