aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgKeyOpera.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/function/gpg/GpgKeyOpera.cpp')
-rw-r--r--src/core/function/gpg/GpgKeyOpera.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/function/gpg/GpgKeyOpera.cpp b/src/core/function/gpg/GpgKeyOpera.cpp
index 3e4fe6d4..e97eebd8 100644
--- a/src/core/function/gpg/GpgKeyOpera.cpp
+++ b/src/core/function/gpg/GpgKeyOpera.cpp
@@ -121,8 +121,9 @@ void GpgKeyOpera::GenerateRevokeCert(const GpgKeyPtr& key,
// get all components
GpgCommandExecutor::ExecuteSync(
{app_path,
- QStringList{"--command-fd", "0", "--status-fd", "1", "--no-tty", "-o",
- output_path, "--gen-revoke", key->Fingerprint()},
+ QStringList{"--homedir", ctx_.HomeDirectory(), "--command-fd", "0",
+ "--status-fd", "1", "--no-tty", "-o", output_path,
+ "--gen-revoke", key->Fingerprint()},
[=](int exit_code, const QString& p_out, const QString& p_err) {
if (exit_code != 0) {
LOG_W() << "gnupg gen revoke execute error, process stderr: "