aboutsummaryrefslogtreecommitdiffstats
path: root/src/init.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-18 22:05:19 +0000
committersaturneric <[email protected]>2025-04-18 22:05:19 +0000
commit8f9af7f87f4f59f2e9912379e9be4e8a73269c9e (patch)
tree1f25ca6222ce3fb7e703b0693c9e6d2f4784282d /src/init.cpp
parentfix: gpg agent cannot run as daemon on windows (diff)
downloadGpgFrontend-8f9af7f87f4f59f2e9912379e9be4e8a73269c9e.tar.gz
GpgFrontend-8f9af7f87f4f59f2e9912379e9be4e8a73269c9e.zip
fix: solve found issues on windows
Diffstat (limited to '')
-rw-r--r--src/init.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index ee19553a..944099c0 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -175,6 +175,11 @@ void ShutdownGlobalBasicEnv(const GFCxtWPtr &p_ctx) {
return;
}
+ // On window platform, the gpg-agent is running as a subprocess. It will be
+ // closed automatically when the application is closing.
+
+#if !defined(_WIN32) && !defined(WIN32)
+
auto clear_gpg_password_cache =
GetSettings().value("basic/clear_gpg_password_cache", false).toBool();
@@ -193,6 +198,8 @@ void ShutdownGlobalBasicEnv(const GFCxtWPtr &p_ctx) {
}
}
+#endif
+
// first should shutdown the module system
GpgFrontend::Module::ShutdownGpgFrontendModules();