From c56aa7b594b4dd9451500258173b3f8ce9c1115d Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Mon, 6 Feb 2023 15:12:12 +0800 Subject: [PATCH] linux: try fix segfault further Related reports: #201 #202 Signed-off-by: Yuhang Zhao <2546789017@qq.com> --- src/core/framelesshelpercore_global.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/framelesshelpercore_global.cpp b/src/core/framelesshelpercore_global.cpp index ef179b1..256882f 100644 --- a/src/core/framelesshelpercore_global.cpp +++ b/src/core/framelesshelpercore_global.cpp @@ -179,9 +179,9 @@ void initialize() // enough, that is, before the construction of any Q(Gui)Application // instances. QCoreApplication won't instantiate the platform plugin. qputenv(QT_QPA_ENV_VAR, kxcb); - // Fedora and Arch users report segfault of calling XInitThreads(). + // Fedora and Arch users report segfault when calling XInitThreads() and gtk_init(). //XInitThreads(); // Users report that GTK is crashing without this. - gtk_init(nullptr, nullptr); // Users report that GTK functionalities won't work without this. + //gtk_init(nullptr, nullptr); // Users report that GTK functionalities won't work without this. #endif #if (defined(Q_OS_MACOS) && (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)))