mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-20 01:50:04 +00:00
fix gpg password with pinentry
This commit is contained in:
parent
1e688d191c
commit
92cb89ad33
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ module MPW
|
|||
|
||||
crypto = GPGME::Crypto.new(armor: true)
|
||||
|
||||
crypto.decrypt(data, password: @gpg_pass).read.force_encoding('utf-8')
|
||||
crypto.decrypt(data, password: @gpg_pass, pinentry_mode: GPGME::PINENTRY_MODE_LOOPBACK).read.force_encoding('utf-8')
|
||||
rescue => e
|
||||
raise "#{I18n.t('error.gpg_file.decrypt')}\n#{e}"
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue