mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-05 03:30:03 +00:00
DistroService: log the detected distro.
This commit is contained in:
@@ -14,6 +14,10 @@ Singleton {
|
|||||||
property bool isNixOS: false
|
property bool isNixOS: false
|
||||||
property bool isReady: false
|
property bool isReady: false
|
||||||
|
|
||||||
|
function init() {
|
||||||
|
Logger.i("DistroService", "Service started")
|
||||||
|
}
|
||||||
|
|
||||||
// Internal helpers
|
// Internal helpers
|
||||||
function buildCandidates(name) {
|
function buildCandidates(name) {
|
||||||
const n = (name || "").trim()
|
const n = (name || "").trim()
|
||||||
@@ -77,6 +81,8 @@ Singleton {
|
|||||||
return l ? l.split("=")[1].replace(/"/g, "") : ""
|
return l ? l.split("=")[1].replace(/"/g, "") : ""
|
||||||
}
|
}
|
||||||
root.osPretty = val("PRETTY_NAME") || val("NAME")
|
root.osPretty = val("PRETTY_NAME") || val("NAME")
|
||||||
|
Logger.i("DistroService", root.osPretty)
|
||||||
|
|
||||||
const osId = (val("ID") || "").toLowerCase()
|
const osId = (val("ID") || "").toLowerCase()
|
||||||
root.isNixOS = osId === "nixos" || (root.osPretty || "").toLowerCase().includes("nixos")
|
root.isNixOS = osId === "nixos" || (root.osPretty || "").toLowerCase().includes("nixos")
|
||||||
const logoName = val("LOGO")
|
const logoName = val("LOGO")
|
||||||
|
|||||||
Reference in New Issue
Block a user