Server setup in the app
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user