aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgAdvancedOperator.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-12-02 22:53:51 +0000
committersaturneric <[email protected]>2024-12-02 22:53:51 +0000
commit78a5ece0391cb0e8cecde95f43afe4479a6709ab (patch)
tree9114b46fb28d58ef63546a78994cc23b6caa909a /src/core/function/gpg/GpgAdvancedOperator.cpp
parentfix: solve memory issues of sdk apis (diff)
downloadGpgFrontend-78a5ece0391cb0e8cecde95f43afe4479a6709ab.tar.gz
GpgFrontend-78a5ece0391cb0e8cecde95f43afe4479a6709ab.zip
fix: discovered issues
Diffstat (limited to 'src/core/function/gpg/GpgAdvancedOperator.cpp')
-rw-r--r--src/core/function/gpg/GpgAdvancedOperator.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/function/gpg/GpgAdvancedOperator.cpp b/src/core/function/gpg/GpgAdvancedOperator.cpp
index 4a373f0a..6b56d867 100644
--- a/src/core/function/gpg/GpgAdvancedOperator.cpp
+++ b/src/core/function/gpg/GpgAdvancedOperator.cpp
@@ -46,12 +46,17 @@ void GpgFrontend::GpgAdvancedOperator::ClearGpgPasswordCache(
return;
}
+#if defined(__APPLE__) && defined(__MACH__)
+ FLOG_I("kill all gpg components in order to clear gpg password cache");
+ KillAllGpgComponents();
+#else
GpgFrontend::GpgCommandExecutor::ExecuteSync(
{gpgconf_path, QStringList{"--reload", "gpg-agent"},
[=](int exit_code, const QString & /*p_out*/,
const QString & /*p_err*/) {
cb(exit_code == 0 ? 0 : -1, TransferParams());
}});
+#endif
}
void GpgFrontend::GpgAdvancedOperator::ReloadGpgComponents(