From ac5d0baa0cc9f3567c235bb1386226959d40bfb7 Mon Sep 17 00:00:00 2001 From: Fedor Korotkov Date: Tue, 12 Mar 2024 06:42:35 -0400 Subject: [PATCH] Fixed `--no-graphics` mode (#755) Regression introduced in #746 --- Sources/tart/Commands/Run.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/tart/Commands/Run.swift b/Sources/tart/Commands/Run.swift index 0e5f461..07c138d 100644 --- a/Sources/tart/Commands/Run.swift +++ b/Sources/tart/Commands/Run.swift @@ -352,7 +352,7 @@ struct Run: AsyncParsableCommand { if noGraphics { // enter the main even loop, without bringing up any UI, // and just wait for the VM to exit. - NSApp.run() + NSApplication.shared.run() } else { runUI(suspendable, captureSystemKeys) }