From b58f021fc8524dfea174eddd83e082ba5b010749 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 2 Jun 2024 13:58:42 -0500 Subject: [PATCH] Only set QT_SSL_USE_TEMPORARY_KEYCHAIN on macOS It's useless on other platforms. --- app/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/main.cpp b/app/main.cpp index e9edb16e..2e74c8b7 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -420,9 +420,11 @@ int main(int argc, char *argv[]) #endif } +#ifdef Q_OS_MACOS // This avoids using the default keychain for SSL, which may cause // password prompts on macOS. qputenv("QT_SSL_USE_TEMPORARY_KEYCHAIN", "1"); +#endif #if defined(Q_OS_WIN32) && QT_VERSION < QT_VERSION_CHECK(6, 0, 0) if (!qEnvironmentVariableIsSet("QT_OPENGL")) {