diff options
author | Kamikadze <[email protected]> | 2024-12-19 04:08:57 +0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-19 00:08:57 +0100 |
commit | 23e7d8f6a7d4e25c2dc6be33af07249570e66940 (patch) | |
tree | 35384f3832f00abe79cdd943db938fd4dd45e659 | |
parent | df06cb4d71a291171c02467c384471f90832d23b (diff) | |
download | Hyprland-23e7d8f6a7d4e25c2dc6be33af07249570e66940.tar.gz Hyprland-23e7d8f6a7d4e25c2dc6be33af07249570e66940.zip |
logging: fix Gpu info (#8764)
-rw-r--r-- | src/debug/CrashReporter.cpp | 2 | ||||
-rw-r--r-- | src/debug/HyprCtl.cpp | 2 | ||||
-rw-r--r-- | src/helpers/MiscFunctions.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/debug/CrashReporter.cpp b/src/debug/CrashReporter.cpp index 7072de81..bddc04be 100644 --- a/src/debug/CrashReporter.cpp +++ b/src/debug/CrashReporter.cpp @@ -161,7 +161,7 @@ void NCrashReporter::createAndSaveCrash(int sig) { #if defined(__DragonFly__) || defined(__FreeBSD__) finalCrashReport.writeCmdOutput("pciconf -lv | grep -F -A4 vga"); #else - finalCrashReport.writeCmdOutput("lspci -vnn | grep -E (VGA|Display|3D)"); + finalCrashReport.writeCmdOutput("lspci -vnn | grep -E '(VGA|Display|3D)'"); #endif finalCrashReport += "\n\nos-release:\n"; diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index d315990f..2d17b2ae 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -976,7 +976,7 @@ std::string systemInfoRequest(eHyprCtlOutputFormat format, std::string request) } } catch (...) { GPUINFO = "error"; } #else - const std::string GPUINFO = execAndGet("lspci -vnn | grep -E (VGA|Display|3D)"); + const std::string GPUINFO = execAndGet("lspci -vnn | grep -E '(VGA|Display|3D)'"); #endif result += "GPU information: \n" + GPUINFO; if (GPUINFO.contains("NVIDIA") && std::filesystem::exists("/proc/driver/nvidia/version")) { diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp index b29ad6aa..e970b781 100644 --- a/src/helpers/MiscFunctions.cpp +++ b/src/helpers/MiscFunctions.cpp @@ -608,7 +608,7 @@ void logSystemInfo() { } } catch (...) { GPUINFO = "error"; } #else - const std::string GPUINFO = execAndGet("lspci -vnn | grep -E (VGA|Display|3D)"); + const std::string GPUINFO = execAndGet("lspci -vnn | grep -E '(VGA|Display|3D)'"); #endif Debug::log(LOG, "GPU information:\n{}\n", GPUINFO); |