mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-24 19:09:49 +01:00
Cleanup
This commit is contained in:
parent
3bc7601c56
commit
4689d9b107
2 changed files with 4 additions and 1 deletions
|
@ -939,7 +939,8 @@ std::string systemInfoRequest(eHyprCtlOutputFormat format, std::string request)
|
|||
GPUINFO += "Driver Description: " + description + "\n";
|
||||
|
||||
result += GPUINFO;
|
||||
|
||||
drmFreeVersion(version);
|
||||
close(fd);
|
||||
|
||||
if (GPUINFO.contains("NVIDIA") && std::filesystem::exists("/proc/driver/nvidia/version"))
|
||||
result += execAndGet("cat /proc/driver/nvidia/version | grep NVRM");
|
||||
|
|
|
@ -627,6 +627,8 @@ void logSystemInfo() {
|
|||
GPUINFO += "Driver Description: " + description + "\n";
|
||||
|
||||
Debug::log(LOG, "GPU information:\n{}\n", GPUINFO);
|
||||
drmFreeVersion(version);
|
||||
close(fd);
|
||||
|
||||
if (GPUINFO.contains("NVIDIA")) {
|
||||
Debug::log(WARN, "Warning: you're using an NVIDIA GPU. Make sure you follow the instructions on the wiki if anything is amiss.\n");
|
||||
|
|
Loading…
Reference in a new issue