diff options
author | saturneric <[email protected]> | 2024-02-14 09:24:36 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-02-14 09:24:36 +0000 |
commit | 6f2e58c4024a3bdbc7dd2292d888cdb7c2ed3859 (patch) | |
tree | 657e45141ad0401d05643349a81890fb48652a55 /src/ui/dialog/gnupg/GnuPGControllerDialog.cpp | |
parent | fix: flathub doesn't support webp as screenshots (diff) | |
download | GpgFrontend-6f2e58c4024a3bdbc7dd2292d888cdb7c2ed3859.tar.gz GpgFrontend-6f2e58c4024a3bdbc7dd2292d888cdb7c2ed3859.zip |
fix: use bundled pinentry as default in flatpak container
Diffstat (limited to 'src/ui/dialog/gnupg/GnuPGControllerDialog.cpp')
-rw-r--r-- | src/ui/dialog/gnupg/GnuPGControllerDialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/dialog/gnupg/GnuPGControllerDialog.cpp b/src/ui/dialog/gnupg/GnuPGControllerDialog.cpp index ea0a27c9..f1fa87e2 100644 --- a/src/ui/dialog/gnupg/GnuPGControllerDialog.cpp +++ b/src/ui/dialog/gnupg/GnuPGControllerDialog.cpp @@ -296,7 +296,9 @@ void GnuPGControllerDialog::set_settings() { } bool const 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(); if (use_pinentry_as_password_input_dialog) { ui_->usePinentryAsPasswordInputDialogCheckBox->setCheckState(Qt::Checked); |