1
0
Fork 0
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:
Adrien Waksberg 2017-04-02 12:14:27 +02:00
parent 1e688d191c
commit 92cb89ad33

View file

@ -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