aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/GpgContext.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-12-06 15:58:23 +0000
committerSaturneric <[email protected]>2021-12-06 15:58:43 +0000
commit97d13004e4f1cb33941a9be57c7e7662e223890b (patch)
tree6bf2466046379fd8ac2a0e9ca3605e15dce4672d /src/gpg/GpgContext.cpp
parentMerge branch 'develop' of github.com:saturneric/GpgFrontend into develop-ci (diff)
downloadGpgFrontend-97d13004e4f1cb33941a9be57c7e7662e223890b.tar.gz
GpgFrontend-97d13004e4f1cb33941a9be57c7e7662e223890b.zip
Improve UI & Functions
Diffstat (limited to '')
-rw-r--r--src/gpg/GpgContext.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpg/GpgContext.cpp b/src/gpg/GpgContext.cpp
index 5d901c3f..b35615a6 100644
--- a/src/gpg/GpgContext.cpp
+++ b/src/gpg/GpgContext.cpp
@@ -76,7 +76,7 @@ GpgContext::GpgContext(bool independent_database, std::string db_path,
if (engineInfo->protocol == GPGME_PROTOCOL_OpenPGP &&
strcmp(engineInfo->version, "1.0.0") != 0)
find_openpgp = true, info.AppPath = engineInfo->file_name,
- info.DatabasePath = "default";
+ info.DatabasePath = "default", info.GnupgVersion = engineInfo->version;
if (engineInfo->protocol == GPGME_PROTOCOL_CMS &&
strcmp(engineInfo->version, "1.0.0") != 0)
find_cms = true;
@@ -91,6 +91,8 @@ GpgContext::GpgContext(bool independent_database, std::string db_path,
good_ = false;
return;
} else {
+ LOG(INFO) << "Gnupg Version" << info.GnupgVersion;
+
// Set Independent Database
if (independent_database) {
info.DatabasePath = db_path;