[openpgp] Set gpgbinary to gpg

Fixes #458
This commit is contained in:
lovetox
2020-05-01 22:15:20 +02:00
parent 113dec8fc1
commit 713f08c056

View File

@@ -20,8 +20,6 @@ from collections import namedtuple
import gnupg
from gajim.common import app
from openpgp.modules.util import DecryptionFailed
log = logging.getLogger('gajim.p.openpgp.pygnupg')
@@ -32,7 +30,7 @@ KeyringItem = namedtuple('KeyringItem', 'jid keyid fingerprint')
class PGPContext(gnupg.GPG):
def __init__(self, jid, gnupghome):
gnupg.GPG.__init__(
self, gpgbinary=app.get_gpg_binary(), gnupghome=str(gnupghome))
self, gpgbinary='gpg', gnupghome=str(gnupghome))
self._passphrase = 'gajimopenpgppassphrase'
self._jid = jid.getBare()