tBypass pinentry when installed - sailfish-safe - Sailfish frontend for safe(1)
(HTM) git clone git://git.z3bra.org/sailfish-safe.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 964d36b6a35728b839d28a95f7889bbd809c5d70
(DIR) parent 8ce842789e5ba60960c38c2d8dbbe8996176e376
(HTM) 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(-)
---
(DIR) diff --git a/src/passwordprovider.cpp b/src/passwordprovider.cpp
t@@ -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;