From 604e09e6ae098350bffe18bde26e1c62f7e88a00 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 2 Mar 2021 22:13:21 -0500 Subject: make the pinentry program configurable --- src/bin/rbw/commands.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/bin/rbw/commands.rs') diff --git a/src/bin/rbw/commands.rs b/src/bin/rbw/commands.rs index 3f11174..2da06a2 100644 --- a/src/bin/rbw/commands.rs +++ b/src/bin/rbw/commands.rs @@ -425,6 +425,7 @@ pub fn config_set(key: &str, value: &str) -> anyhow::Result<()> { config.lock_timeout = timeout; } } + "pinentry" => config.pinentry = value.to_string(), _ => return Err(anyhow::anyhow!("invalid config key: {}", key)), } config.save()?; @@ -449,6 +450,7 @@ pub fn config_unset(key: &str) -> anyhow::Result<()> { "lock_timeout" => { config.lock_timeout = rbw::config::default_lock_timeout() } + "pinentry" => config.pinentry = rbw::config::default_pinentry(), _ => return Err(anyhow::anyhow!("invalid config key: {}", key)), } config.save()?; -- cgit v1.2.3-54-g00ecf