From b377b0136c1e5baab8b36b15e02041f212d5aadb Mon Sep 17 00:00:00 2001 From: chenjun Date: Mon, 28 Feb 2022 19:08:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=8E=B7=E5=8F=96=E5=88=B0=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E7=A8=8B=E5=BA=8F=E7=9A=84=E9=A2=84=E8=A7=88=E5=9B=BE?= =?UTF-8?q?=E5=90=8E=E5=88=A0=E9=99=A4=E4=BA=A7=E7=94=9F=E7=9A=84=E4=B8=B4?= =?UTF-8?q?=E6=97=B6=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 通过KWin接口获取到应用的缩略图后及时删除临时文件,避免临时文件过多占用硬盘空间 Log: 修复/tmp目录下有很多Kwin的截图的问题 Bug: https://pms.uniontech.com/bug-view-113822.html Influence: 预览时不会在tmp目录产生临时文件 Change-Id: I258425279b6cb7448d9636308e2a1e65eec010fe --- frame/item/components/appsnapshot.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frame/item/components/appsnapshot.cpp b/frame/item/components/appsnapshot.cpp index 9fcf0f016..a6e546feb 100644 --- a/frame/item/components/appsnapshot.cpp +++ b/frame/item/components/appsnapshot.cpp @@ -222,8 +222,14 @@ void AppSnapshot::fetchSnapshot() QDBusReply reply = interface.callWithArgumentList(QDBus::Block,QStringLiteral("screenshotForWindowExtend"), args); if(reply.isValid()){ - m_snapshot.load(reply.value()); - qDebug() << "reply: "<