From 088dd762571868b661f3a74bf84174dcaee01953 Mon Sep 17 00:00:00 2001 From: Cuteivist Date: Thu, 1 Jun 2023 20:24:31 +0200 Subject: [PATCH] desktop(DOtherSide): Set env var before creating gui app (#10891) --- src/nim_status_client.nim | 4 ---- vendor/DOtherSide/lib/src/DOtherSide.cpp | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nim_status_client.nim b/src/nim_status_client.nim index 01d7b5751a..361196212e 100644 --- a/src/nim_status_client.nim +++ b/src/nim_status_client.nim @@ -116,10 +116,6 @@ proc mainProc() = installSelfSignedCertificate(imageCert) let app = newQGuiApplication() - # NOTE: https://github.com/status-im/status-desktop/issues/6930 - # We increase js stack size to prevent "Maximum call stack size exceeded" on UI loading. - os.putEnv("QV4_JS_MAX_STACK_SIZE", "10485760") - os.putEnv("QT_QUICK_CONTROLS_HOVER_ENABLED", "1") let singleInstance = newSingleInstance($toMD5(DATADIR), openUri) let urlSchemeEvent = newStatusUrlSchemeEventObject() diff --git a/vendor/DOtherSide/lib/src/DOtherSide.cpp b/vendor/DOtherSide/lib/src/DOtherSide.cpp index a087687798..8b585888fc 100644 --- a/vendor/DOtherSide/lib/src/DOtherSide.cpp +++ b/vendor/DOtherSide/lib/src/DOtherSide.cpp @@ -232,6 +232,10 @@ void dos_qguiapplication_create() static char *argv[] = {toCharPtr(QStringLiteral("Status"))}; #endif + // NOTE: https://github.com/status-im/status-desktop/issues/6930 + // We increase js stack size to prevent "Maximum call stack size exceeded" on UI loading. + qputenv("QV4_JS_MAX_STACK_SIZE", "10485760"); + qputenv("QT_QUICK_CONTROLS_HOVER_ENABLED", "1"); qInstallMessageHandler(myMessageOutput); new QGuiApplication(argc, argv);