From 2688b8b41850fb28fe185bdbec55e863bc7c9b83 Mon Sep 17 00:00:00 2001 From: Zhiyuan Li <uniartisan2017@gmail.com> Date: Mon, 19 Aug 2024 14:10:43 +1000 Subject: [PATCH] =?UTF-8?q?FIX:=20=E6=B8=B2=E6=9F=93=E4=B8=8D=E4=B8=8A?= =?UTF-8?q?=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index a28f529..d3bee24 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -75,7 +75,7 @@ void crashHandler(int sig) { gatherInfo(popen("LANG=en_US.UTF-8 lsb_release -a", "r"), logFile, "Distribution info"); gatherInfo(popen("LANG=en_US.UTF-8 lscpu", "r"), logFile, "All CPU Info"); gatherInfo(popen("LANG=en_US.UTF-8 free -h | grep Mem | awk '{print $2}'", "r"), logFile, "Memory Size"); - + logFile << "Error: signal " << sig << ":\n"; @@ -144,6 +144,8 @@ int main(int argc, char *argv[]) // 浏览器开启 GPU 支持 // qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-features=UseModernMediaControls"); // qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-web-security"); + // 全平台软件渲染Webkit + qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-gpu"); #if defined (__sw_64__) || defined (__loongarch__) qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--no-sandbox"); #endif