mirror of
https://github.com/hyprwm/hyprsysteminfo.git
synced 2024-11-22 00:05:59 +01:00
core: try product_id before board_id
This commit is contained in:
parent
6a8260e134
commit
df54301136
1 changed files with 3 additions and 1 deletions
|
@ -183,7 +183,9 @@ static void getSystemInfo(CSystemInternals* hsi, QGuiApplication* app) {
|
|||
|
||||
hsi->user = std::format("{}@{}", trim(execAndGet("whoami")), readFile("/etc/hostname")).c_str();
|
||||
|
||||
if (const auto BOARD = readFile("/sys/devices/virtual/dmi/id/board_name"); BOARD != "[error]")
|
||||
if (const auto PRODUCT = readFile("/sys/devices/virtual/dmi/id/product_name"); PRODUCT != "[error]")
|
||||
hsi->board = PRODUCT.c_str();
|
||||
else if (const auto BOARD = readFile("/sys/devices/virtual/dmi/id/board_name"); BOARD != "[error]")
|
||||
hsi->board = BOARD.c_str();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue