desktop(DOtherSide): Set env var before creating gui app (#10891)

This commit is contained in:
Cuteivist 2023-06-01 20:24:31 +02:00 committed by GitHub
parent 278654f694
commit 088dd76257
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -116,10 +116,6 @@ proc mainProc() =
installSelfSignedCertificate(imageCert) installSelfSignedCertificate(imageCert)
let app = newQGuiApplication() 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 singleInstance = newSingleInstance($toMD5(DATADIR), openUri)
let urlSchemeEvent = newStatusUrlSchemeEventObject() let urlSchemeEvent = newStatusUrlSchemeEventObject()

View File

@ -232,6 +232,10 @@ void dos_qguiapplication_create()
static char *argv[] = {toCharPtr(QStringLiteral("Status"))}; static char *argv[] = {toCharPtr(QStringLiteral("Status"))};
#endif #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); qInstallMessageHandler(myMessageOutput);
new QGuiApplication(argc, argv); new QGuiApplication(argc, argv);