DistroService: log the detected distro.

This commit is contained in:
Sébastien Atoch
2025-10-25 22:22:18 -04:00
parent 4f0f159bff
commit c5acc77fc9
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -14,6 +14,10 @@ Singleton {
property bool isNixOS: false
property bool isReady: false
function init() {
Logger.i("DistroService", "Service started")
}
// Internal helpers
function buildCandidates(name) {
const n = (name || "").trim()
@@ -77,6 +81,8 @@ Singleton {
return l ? l.split("=")[1].replace(/"/g, "") : ""
}
root.osPretty = val("PRETTY_NAME") || val("NAME")
Logger.i("DistroService", root.osPretty)
const osId = (val("ID") || "").toLowerCase()
root.isNixOS = osId === "nixos" || (root.osPretty || "").toLowerCase().includes("nixos")
const logoName = val("LOGO")
+1
View File
@@ -93,6 +93,7 @@ ShellRoot {
BatteryService.init()
IdleInhibitorService.init()
PowerProfileService.init()
DistroService.init()
}
Background {}