Properly enter main even loop in headless mode (#651)

Fixes #638
This commit is contained in:
Fedor Korotkov
2023-11-09 00:05:00 +04:00
committed by GitHub
parent c75009e46f
commit b2c923f2fe
+2 -1
View File
@@ -312,7 +312,8 @@ struct Run: AsyncParsableCommand {
let useVNCWithoutGraphics = (vnc || vncExperimental) && !graphics
if noGraphics || useVNCWithoutGraphics {
dispatchMain()
// enter the main even loop and just wait for the VM to exit
NSApplication.shared.run()
} else {
runUI(suspendable, captureSystemKeys)
}