mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-05-30 01:15:13 +00:00
DistroService: log the detected distro.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user