diff options
author | saturneric <[email protected]> | 2025-04-19 00:59:51 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-19 01:36:14 +0000 |
commit | d8d004fc73e6c2faaf823b23cb0fd4221aec0759 (patch) | |
tree | 9f7790c7a266f9122d18fdead98c2be3640fdf30 /src/core/utils/GpgUtils.cpp | |
parent | chore: update german and chinese translations (diff) | |
download | GpgFrontend-d8d004fc73e6c2faaf823b23cb0fd4221aec0759.tar.gz GpgFrontend-d8d004fc73e6c2faaf823b23cb0fd4221aec0759.zip |
fix: find pinentry under /app/bin in flatpak container
Diffstat (limited to 'src/core/utils/GpgUtils.cpp')
-rw-r--r-- | src/core/utils/GpgUtils.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/utils/GpgUtils.cpp b/src/core/utils/GpgUtils.cpp index c51b7e37..7098e47a 100644 --- a/src/core/utils/GpgUtils.cpp +++ b/src/core/utils/GpgUtils.cpp @@ -468,6 +468,11 @@ auto GPGFRONTEND_CORE_EXPORT DecidePinentry() -> QString { QStringList preferred_list = {"pinentry-qt"}; #endif + if (IsFlatpakENV()) { + LOG_D() << "set flatpak pinentry to /app/bin/pinentry-qt"; + return "/app/bin/pinentry-qt"; + } + for (const QString& name : preferred_list) { QString path = QStandardPaths::findExecutable(name); if (!path.isEmpty()) { |