Server setup in the app

This commit is contained in:
Ian Gulliver
2026-10-18 22:17:54 -07:00
parent 327aab069d
commit 602e6703b4
16 changed files with 825 additions and 269 deletions
+4
View File
@@ -45,6 +45,10 @@ struct Server {
_ = NSApplication.shared
NSApp.setActivationPolicy(.prohibited)
AXUIElementSetMessagingTimeout(AXUIElementCreateSystemWide(), 3)
if CommandLine.arguments.dropFirst().first == "check" {
runCheck()
RunLoop.main.run()
}
Thread.detachNewThread {
let inFlight = DispatchGroup()
while let line = readLine() {