aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/GpgCoreInit.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-08-05 16:55:32 +0000
committersaturneric <[email protected]>2024-08-05 16:55:32 +0000
commit795a81bd1edad59ef51e73157b5ad68cfa30e328 (patch)
treefd9c4da2f1389f0a236d806e005cabb9f5ceab41 /src/core/GpgCoreInit.cpp
parentfix: build pipeline (diff)
parentfix: unchecking some check boxes at gnupg controller will not restart (diff)
downloadGpgFrontend-2.1.4.tar.gz
GpgFrontend-2.1.4.zip
fix: according to issues and test, apply some fixesv2.1.4
Diffstat (limited to 'src/core/GpgCoreInit.cpp')
-rw-r--r--src/core/GpgCoreInit.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/GpgCoreInit.cpp b/src/core/GpgCoreInit.cpp
index 3f738835..68acc4cc 100644
--- a/src/core/GpgCoreInit.cpp
+++ b/src/core/GpgCoreInit.cpp
@@ -304,9 +304,6 @@ void InitGpgFrontendCore(CoreInitArgs args) {
auto custom_key_database_path =
settings.value("gnupg/custom_key_database_path", QString{}).toString();
- auto custom_gnupg_install_path =
- settings.value("gnupg/custom_gnupg_install_path", QString{}).toString();
-
auto use_pinentry_as_password_input_dialog =
settings
.value("gnupg/use_pinentry_as_password_input_dialog",
@@ -327,10 +324,14 @@ void InitGpgFrontendCore(CoreInitArgs args) {
!custom_key_database_path.isEmpty()) {
if (VerifyKeyDatabasePath(QFileInfo(custom_key_database_path))) {
key_database_fs_path =
- QFileInfo(custom_gnupg_install_path).absoluteFilePath();
+ QFileInfo(custom_key_database_path).absoluteFilePath();
+ LOG_D() << "use custom gpg key database: " << key_database_fs_path
+ << "raw:" << custom_key_database_path;
+
} else {
LOG_W() << "custom gpg key database path is not suitable: "
- << key_database_fs_path;
+ << key_database_fs_path
+ << "raw:" << custom_key_database_path;
}
} else {
@@ -354,8 +355,7 @@ void InitGpgFrontendCore(CoreInitArgs args) {
// set custom gnupg path
if (!gnupg_install_fs_path.isEmpty()) {
- args.custom_gpgconf = true;
- args.custom_gpgconf_path = gnupg_install_fs_path;
+ args.gpgconf_path = gnupg_install_fs_path;
}
args.offline_mode = forbid_all_gnupg_connection;