mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-23 23:09:49 +01:00
core: use readFileAsString instead of cat for os-release
This commit is contained in:
parent
086fd7ece8
commit
0a0e56d99c
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
#include "../managers/TokenManager.hpp"
|
#include "../managers/TokenManager.hpp"
|
||||||
#include "Monitor.hpp"
|
#include "Monitor.hpp"
|
||||||
#include "../config/ConfigManager.hpp"
|
#include "../config/ConfigManager.hpp"
|
||||||
|
#include "fs/FsUtils.hpp"
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
@ -621,7 +622,7 @@ void logSystemInfo() {
|
||||||
// log etc
|
// log etc
|
||||||
Debug::log(LOG, "os-release:");
|
Debug::log(LOG, "os-release:");
|
||||||
|
|
||||||
Debug::log(NONE, "{}", execAndGet("cat /etc/os-release"));
|
Debug::log(NONE, "{}", NFsUtils::readFileAsString("/etc/os-release").value_or("error"));
|
||||||
}
|
}
|
||||||
|
|
||||||
int64_t getPPIDof(int64_t pid) {
|
int64_t getPPIDof(int64_t pid) {
|
||||||
|
|
Loading…
Reference in a new issue