From 3fd93deca5b166d101ffe86c4f864e2b32bbe7c1 Mon Sep 17 00:00:00 2001 From: houchengqiu Date: Tue, 29 Aug 2023 14:21:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dkwin=5Fx11=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E6=98=BE=E7=A4=BA=E6=97=A0=E5=86=85=E5=AE=B9=EF=BC=8C?= =?UTF-8?q?=E5=85=A8=E9=83=A8=E5=AF=BC=E5=87=BA=E6=97=A0=E8=AF=A5=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复kwin_x11日志显示无内容,全部导出无该文件的问题 Log: 修复kwin_x11日志显示无内容,全部导出无该文件的问题 --- application/logapplicationhelper.cpp | 4 ++-- application/loglistview.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/logapplicationhelper.cpp b/application/logapplicationhelper.cpp index aaf4fb66..375e9106 100644 --- a/application/logapplicationhelper.cpp +++ b/application/logapplicationhelper.cpp @@ -112,12 +112,12 @@ void LogApplicationHelper::initOtherLog() m_other_log_list_temp.append(QStringList() << "iso-customizer-agent.log" << "/root/.cache/isocustomizer-agent/iso-customizer-agent/iso-customizer-agent.log"); m_other_log_list_temp.append(QStringList() << "downloader" << "~/.config/uos/downloader/Log"); - m_other_log_list_temp.append(QStringList() << ".kwin.log" << "~/.kwin.log"); + m_other_log_list_temp.append(QStringList() << "kwin.log" << "~/kwin.log"); m_other_log_list_temp.append(QStringList() << "audit.log" << "/var/log/audit/audit.log"); m_other_log_list_temp.append(QStringList() << "udcp-client" << "/var/log/udcp-client"); //窗管日志和配置文件监视 - m_other_log_list_temp.append(QStringList() << ".kwin_x11.log" << "~/.kwin_x11.log"); + m_other_log_list_temp.append(QStringList() << "kwin_x11.log" << "~/kwin_x11.log"); m_other_log_list_temp.append(QStringList() << "kwinrc" << "~/.config/kwinrc"); m_other_log_list_temp.append(QStringList() << "kglobalshortcutsrc" << "~/.config/kglobalshortcutsrc"); m_other_log_list_temp.append(QStringList() << "kwinrulesrc" << "~/.config/kwinrulesrc"); diff --git a/application/loglistview.cpp b/application/loglistview.cpp index c354bdc5..ab63bef6 100644 --- a/application/loglistview.cpp +++ b/application/loglistview.cpp @@ -308,8 +308,8 @@ void LogListView::initUI() m_logTypes.push_back(OTHER_TREE_DATA); //custom - m_logTypes.push_back(CUSTOM_TREE_DATA); if (LogApplicationHelper::instance()->getCustomLogList().size()) { + m_logTypes.push_back(CUSTOM_TREE_DATA); initCustomLogItem(); }