commit 964d36b6a35728b839d28a95f7889bbd809c5d70 parent 8ce842789e5ba60960c38c2d8dbbe8996176e376 Author: Daniel Vrátil <dvratil@kde.org> Date: Sun, 3 Feb 2019 23:53:21 +0100 Bypass pinentry when installed Diffstat:
M | src/passwordprovider.cpp | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/passwordprovider.cpp b/src/passwordprovider.cpp @@ -123,7 +123,10 @@ void PasswordProvider::requestPassword() QStringLiteral("--passphrase-fd=0"), mPath }; if (isGpg2) { - args = QStringList{ QStringLiteral("--batch"), QStringLiteral("--use-agent") } + args; + args = QStringList{ QStringLiteral("--pinentry-mode=loopback"), + QStringLiteral("--batch"), + QStringLiteral("--use-agent") } + + args; } mGpg = new QProcess;