Move macOS sleep detection into the daemon and replace CGO with purego

This commit is contained in:
Viktor Liu
2026-04-20 07:05:29 +02:00
parent 8ae8f2098f
commit ce12c620c4
8 changed files with 1089 additions and 1087 deletions

View File

@@ -120,6 +120,7 @@ func New(ctx context.Context, logFile string, configFile string, profilesDisable
}
agent := &serverAgent{s}
s.sleepHandler = sleephandler.New(agent)
s.startSleepDetector()
return s
}