Skip to content

Commit 3ecae88

Browse files
vkconfig: Add XDG env variables into the diagnostic
Change-Id: I999e39325d4e0ae2a2fbb32653698163ebb4d1dc
1 parent 67b5d1d commit 3ecae88

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

vkconfig_core/configurator.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,8 +878,16 @@ std::string Configurator::Log() const {
878878
log += format(" - %s %s\n", current.name().toStdString().c_str(), current.version().toString().toStdString().c_str());
879879
#endif
880880

881+
if (qEnvironmentVariableIsSet("XDG_SESSION_TYPE")) {
882+
log += format(" - ${XDG_SESSION_TYPE}: %s\n", qgetenv("XDG_SESSION_TYPE").toStdString().c_str());
883+
}
884+
if (qEnvironmentVariableIsSet("XDG_CURRENT_DESKTOP")) {
885+
log += format(" - ${XDG_CURRENT_DESKTOP}: %s\n", qgetenv("XDG_CURRENT_DESKTOP").toStdString().c_str());
886+
}
887+
881888
log += format(" - CPU architechture: %s\n", QSysInfo::currentCpuArchitecture().toStdString().c_str());
882889
log += format(" - Logical CPU core count: %d\n", std::thread::hardware_concurrency());
890+
883891
log += "\n";
884892

885893
log += format("%s Settings:\n", VKCONFIG_NAME);

0 commit comments

Comments
 (0)