1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-04 21:02:06 -04:00

thememode: connect to loginctl PrepareForSleep event

This commit is contained in:
bbedward
2026-02-23 19:01:20 -05:00
parent 7276f295fc
commit 3ea4e389eb
2 changed files with 44 additions and 17 deletions

View File

@@ -1599,6 +1599,13 @@ func Start(printDocs bool) error {
log.Warnf("Theme mode manager unavailable: %v", err)
} else {
notifyCapabilityChange()
go func() {
<-loginctlReady
if loginctlManager == nil {
return
}
themeModeManager.WatchLoginctl(loginctlManager)
}()
}
fatalErrChan := make(chan error, 1)