diff --git a/Sources/tart/Commands/Run.swift b/Sources/tart/Commands/Run.swift index e0f2fb9d..390aa3f9 100644 --- a/Sources/tart/Commands/Run.swift +++ b/Sources/tart/Commands/Run.swift @@ -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) }