Skip to content

Commit

Permalink
fix: 窗管默认日志路径应加.
Browse files Browse the repository at this point in the history
 窗管默认日志日志应加.

Log: 窗管默认日志路径应加.
  • Loading branch information
starhcq authored and rb-union committed Aug 30, 2023
1 parent 3fd93de commit 9abd946
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/logapplicationhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 2 additions & 0 deletions application/logexportthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3382,6 +3382,7 @@ bool LogExportThread::exportToZip(const QString &fileName, const QList<LOG_MSG_C
if (!m_canRunning) {
procss.kill();
ret = false;
qDebug() << "route process slot can't run.. ret:" << ret;
return;
}

Expand All @@ -3395,6 +3396,7 @@ bool LogExportThread::exportToZip(const QString &fileName, const QList<LOG_MSG_C
}
}
ret = true;
qDebug() << "route process slot ret:" << ret;
});
procss.start("/bin/bash", arg);
procss.waitForFinished(-1);
Expand Down

0 comments on commit 9abd946

Please sign in to comment.