Unbreak CrashReporter on FreeBSD (#1589)

This commit is contained in:
Jan Beich
2023-02-20 14:15:15 +00:00
committed by GitHub
parent 784cdd7638
commit 474ada9267
6 changed files with 49 additions and 0 deletions

View File

@@ -412,7 +412,11 @@ void logSystemInfo() {
Debug::log(NONE, "\n");
#if defined(__DragonFly__) || defined(__FreeBSD__)
const std::string GPUINFO = execAndGet("pciconf -lv | fgrep -A4 vga");
#else
const std::string GPUINFO = execAndGet("lspci -vnn | grep VGA");
#endif
Debug::log(LOG, "GPU information:\n%s\n", GPUINFO.c_str());
if (GPUINFO.contains("NVIDIA")) {