1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-08 12:13:31 -04:00

thememode: connect to loginctl PrepareForSleep event

This commit is contained in:
bbedward
2026-02-23 19:01:20 -05:00
parent 9f38a47a02
commit e83da53162
2 changed files with 44 additions and 17 deletions
+7
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)