From be96da650c27b0309daf14b09420208bfd37157c Mon Sep 17 00:00:00 2001 From: Laurent Trinques Date: Thu, 23 Jan 2025 12:35:03 +0100 Subject: [PATCH] Maichine info: add new QStandardPaths --- sources/machine_info.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sources/machine_info.cpp b/sources/machine_info.cpp index f3a6fe7cf..bb1de7fdb 100644 --- a/sources/machine_info.cpp +++ b/sources/machine_info.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #ifdef Q_OS_WIN #include @@ -144,6 +145,15 @@ void MachineInfo::send_info_to_debug() + " - " + pc.cpu.Architecture + " - Version : "+pc.os.name + " - Kernel : "+pc.os.kernel; + + qInfo()<< " Standard Location :"<< QStringList(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation)); + qInfo()<< " App Data Location:"<< QStandardPaths::writableLocation(QStandardPaths::AppDataLocation); + qInfo()<< " App Local DataLocation:"<< QStandardPaths::writableLocation(QStandardPaths::ApplicationsLocation); + qInfo()<< " Home Location:"<< QStandardPaths::writableLocation(QStandardPaths::HomeLocation); + qInfo()<< " Runtime Location:"<< QStandardPaths::writableLocation(QStandardPaths::RuntimeLocation); + qInfo()<< " Cache Location:"<< QStandardPaths::writableLocation(QStandardPaths::CacheLocation); + + qInfo()<< "*** Qt screens ***"; for (int ii = 0; ii < pc.screen.count; ++ii) { @@ -411,3 +421,4 @@ QString MachineInfo::compilation_info() } return compilation_info; } +