From e7680fe2a03acda11f1ee2233d19de358571f2b6 Mon Sep 17 00:00:00 2001 From: Pluto <lizhiyuan@uniartisan.com> Date: Tue, 20 Sep 2022 04:03:09 +0000 Subject: [PATCH] =?UTF-8?q?!114=20feat:=20GPU=20enable=20*=20Merge=20remot?= =?UTF-8?q?e-tracking=20branch=20'upstream/master'=20into=20dev=20*=20Merg?= =?UTF-8?q?e=20remote-tracking=20branch=20'upstream/dev'=20into=20dev=20*?= =?UTF-8?q?=20feat:=20enable=20GPU=20*=20!113=203.2.1=20merge=20*=20!112?= =?UTF-8?q?=20Now=20stop=20use=20mail=20to=20collect=20info=20*=20Merge=20?= =?UTF-8?q?remote-tracking=20branch=20'upstream/dev'=20into=20dev=20*=20Me?= =?UTF-8?q?rge=20branch=20'dev'=20of=20gitee.com:uniartisan2018/spark-stor?= =?UTF-8?q?e=20into=20dev=20*=20feat:=20=E6=B8=85=E9=99=A4=E7=BD=91?= =?UTF-8?q?=E9=A1=B5=E7=BC=93=E5=AD=98=20*=20=E6=96=87=E6=A1=88=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=20*=20update=20src/widget.ui.=20*=20feat:=20=E6=98=9F?= =?UTF-8?q?=E7=81=AB=E5=BA=94=E7=94=A8=E5=95=86=E5=BA=97=E6=A3=80=E6=B5=8B?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/tmp/spark-store-install/feedback.sh | 2 +- src/main.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/tmp/spark-store-install/feedback.sh b/pkg/tmp/spark-store-install/feedback.sh index e668d77..007f976 100755 --- a/pkg/tmp/spark-store-install/feedback.sh +++ b/pkg/tmp/spark-store-install/feedback.sh @@ -6,4 +6,4 @@ Subject: spark-store_3.0.2: $(lsb_release -a | grep "Description" | sed -e "s#\t $(uname -a)" | tee /tmp/spark-store-install/feedback.txt > /dev/null -curl -s --url "smtp://smtp.163.com" --mail-from "sparkstorefeedback@163.com" --mail-rcpt "sparkstorefeedback@163.com" --upload-file /tmp/spark-store-install/feedback.txt --user "sparkstorefeedback@163.com:YWYGLQNOPLWNNJJY" +curl -s --url "smtp://smtp.163.com" --mail-from "${MAIL_FEEDBACK}" --mail-rcpt "${MAIL_FEEDBACK}" --upload-file /tmp/spark-store-install/feedback.txt --user "${MAIL_FEEDBACK}:${M}AIL_AUTH" diff --git a/src/main.cpp b/src/main.cpp index aca4f69..5aacfdb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -13,6 +13,10 @@ int main(int argc, char *argv[]) DApplication::loadDXcbPlugin(); // 已废弃,但是对于非deepin桌面可以正常使用标题栏 DApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // 开启 Hidpi 支持 // 程序内强制添加"-platformtheme deepin"参数喂给Qt让Qt正确使用Deepin主题修复各种奇怪样式问题 + + // 浏览器开启 GPU 支持 + qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--ignore-gpu-blacklist --enable-gpu-rasterization --enable-native-gpu-memory-buffers --enable-accelerated-video-decode"); + QVector<char*> fakeArgs(argc + 2); fakeArgs[0] = argv[0]; fakeArgs[1] = "-platformtheme";