aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindow.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-18 17:35:45 +0000
committersaturneric <[email protected]>2025-04-18 17:35:45 +0000
commitd115562e6cb231356ef87a2ab86f4da1159a9e41 (patch)
treec079dd49cf0a991b17cb96ad4f05d558567908c0 /src/ui/main_window/MainWindow.cpp
parentfeat: add more basic env checks at init (diff)
downloadGpgFrontend-d115562e6cb231356ef87a2ab86f4da1159a9e41.tar.gz
GpgFrontend-d115562e6cb231356ef87a2ab86f4da1159a9e41.zip
fix: issues found on macos
Diffstat (limited to 'src/ui/main_window/MainWindow.cpp')
-rw-r--r--src/ui/main_window/MainWindow.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/ui/main_window/MainWindow.cpp b/src/ui/main_window/MainWindow.cpp
index 4b5c71f5..8c8fd55e 100644
--- a/src/ui/main_window/MainWindow.cpp
+++ b/src/ui/main_window/MainWindow.cpp
@@ -117,19 +117,20 @@ void MainWindow::Init() noexcept {
&UISignalStation::SignalMainWindowOpenFile, this,
&MainWindow::SlotOpenFile);
-#if defined(__linux__)
+#if !(defined(_WIN32) || defined(WIN32))
connect(this, &MainWindow::SignalLoaded, this, [=]() {
QTimer::singleShot(3000, [self = QPointer<MainWindow>(this)]() {
if (self != nullptr && DecidePinentry().isEmpty() && !IsFlatpakENV()) {
QMessageBox::warning(
- self, QObject::tr("Pinentry Not Found"),
- QObject::tr(
- "No suitable pinentry program was found on your system.\n\n"
- "Please install 'pinentry-qt' or another compatible pinentry "
- "(e.g., pinentry-gnome3, pinentry-gtk2).\n\n"
- "Without it, GnuPG cannot prompt for passwords.\n\n"
- "Once you have installed it, please restart GpgFrontend. "
- "The configuration file will be updated automatically."));
+ self, tr("GUI Pinentry Not Found"),
+ tr("No suitable *graphical* Pinentry program was found on your "
+ "system.\n\n"
+ "Please install a GUI-based Pinentry (e.g., 'pinentry-qt', "
+ "'pinentry-gnome3', or 'pinentry-mac' on macOS).\n\n"
+ "Without a GUI Pinentry, GnuPG cannot prompt you for "
+ "passwords or passphrases.\n\n"
+ "After installing it, please restart GpgFrontend. The "
+ "configuration file will be updated automatically."));
}
});
});