diff options
Diffstat (limited to 'src/core/function/gpg/GpgAdvancedOperator.cpp')
-rw-r--r-- | src/core/function/gpg/GpgAdvancedOperator.cpp | 5 |
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( |