diff options
author | saturneric <[email protected]> | 2024-11-17 13:30:43 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-11-17 13:30:43 +0000 |
commit | 1ae49c85f09ef960e5c72ffe57821f14585ae45a (patch) | |
tree | 0f9552e9d7864a82aa51347e388b4010176145a8 /src/core/GpgCoreInit.cpp | |
parent | fix: setup gitea develop regularly build and test process (diff) | |
download | GpgFrontend-1ae49c85f09ef960e5c72ffe57821f14585ae45a.tar.gz GpgFrontend-1ae49c85f09ef960e5c72ffe57821f14585ae45a.zip |
feat: add restrictions to key database
Diffstat (limited to 'src/core/GpgCoreInit.cpp')
-rw-r--r-- | src/core/GpgCoreInit.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/GpgCoreInit.cpp b/src/core/GpgCoreInit.cpp index 3a5edff2..e796738e 100644 --- a/src/core/GpgCoreInit.cpp +++ b/src/core/GpgCoreInit.cpp @@ -99,9 +99,12 @@ auto InitGpgME(const QString& gpgconf_path, const QString& gnupg_path) -> bool { gpgme_set_locale(nullptr, LC_MESSAGES, setlocale(LC_MESSAGES, nullptr)); #endif - if (!gnupg_path.isEmpty()) { + if (!gpgconf_path.isEmpty()) { CheckGpgError(gpgme_set_engine_info(GPGME_PROTOCOL_GPGCONF, gpgconf_path.toUtf8(), nullptr)); + } + + if (!gnupg_path.isEmpty()) { CheckGpgError(gpgme_set_engine_info(GPGME_PROTOCOL_OpenPGP, gnupg_path.toUtf8(), nullptr)); } |