aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/GpgCoreInit.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-02-14 09:24:36 +0000
committersaturneric <[email protected]>2024-02-14 09:24:36 +0000
commit6f2e58c4024a3bdbc7dd2292d888cdb7c2ed3859 (patch)
tree657e45141ad0401d05643349a81890fb48652a55 /src/core/GpgCoreInit.cpp
parentfix: flathub doesn't support webp as screenshots (diff)
downloadGpgFrontend-6f2e58c4024a3bdbc7dd2292d888cdb7c2ed3859.tar.gz
GpgFrontend-6f2e58c4024a3bdbc7dd2292d888cdb7c2ed3859.zip
fix: use bundled pinentry as default in flatpak container
Diffstat (limited to 'src/core/GpgCoreInit.cpp')
-rw-r--r--src/core/GpgCoreInit.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/GpgCoreInit.cpp b/src/core/GpgCoreInit.cpp
index 3a56c02a..137a118b 100644
--- a/src/core/GpgCoreInit.cpp
+++ b/src/core/GpgCoreInit.cpp
@@ -319,7 +319,10 @@ void InitGpgFrontendCore(CoreInitArgs args) {
.toString();
auto use_pinentry_as_password_input_dialog =
- settings.value("gnupg/use_pinentry_as_password_input_dialog", true)
+ settings
+ .value(
+ "gnupg/use_pinentry_as_password_input_dialog",
+ QString::fromLocal8Bit(qgetenv("container")) != "flatpak")
.toBool();
GF_CORE_LOG_DEBUG("core loaded if use custom key databse path: {}",