Skip to content

Commit

Permalink
feat: append os version to system info
Browse files Browse the repository at this point in the history
添加版本信息到反馈数据中, 便于排查反馈的问题

Log:
  • Loading branch information
myml committed Aug 5, 2024
1 parent 61c0a04 commit 65f929a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/maincomponentplugin/worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,12 @@ void Worker::getSysInfo()
process.start("inxi", {"-F", "-c", "0"});
process.waitForFinished();
auto out = process.readAllStandardOutput();

QFile f("/etc/os-version");
if(f.open(QIODevice::ReadOnly)){
out += "\n" + f.readAll();
}

process.start("grep",
{"-r", "-Ev", "^#|^$", "/etc/apt/sources.list", "/etc/apt/sources.list.d"});
process.waitForFinished();
Expand Down

0 comments on commit 65f929a

Please sign in to comment.