From 4abc766ab6730883af78d400fe4dade87af99f24 Mon Sep 17 00:00:00 2001 From: HardCodeDev Date: Sun, 25 Jan 2026 18:54:06 +0400 Subject: [PATCH] Fix Windows Open command --- src/ucll/Shared/UnityHub.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ucll/Shared/UnityHub.cs b/src/ucll/Shared/UnityHub.cs index 5441a19..5325b14 100644 --- a/src/ucll/Shared/UnityHub.cs +++ b/src/ucll/Shared/UnityHub.cs @@ -34,6 +34,9 @@ public string GetEditorPath(string version) if (appBundlePath == null) throw new UserException($"Unity version {version} is not installed."); + if (appBundlePath.EndsWith("Unity.exe", StringComparison.OrdinalIgnoreCase)) + return appBundlePath; + return Path.Combine(appBundlePath, platformSupport.RelativeEditorPathToExecutable); } @@ -187,4 +190,4 @@ private static void WriteStatusUpdate(string message) // However, we do want the progress feedback that the Hub provides. AnsiConsole.MarkupLine($"[cyan]{message}...[/]"); } -} \ No newline at end of file +}