From 80d311ec13373723ae5f8ba45c9fa69b1c8d3ff2 Mon Sep 17 00:00:00 2001 From: David Sarno Date: Wed, 13 Aug 2025 19:15:03 -0700 Subject: [PATCH] chore(windows): WinGet Links resolution uses ProgramFiles (machine-wide) after LOCALAPPDATA; drop ProgramData; update comment --- UnityMcpBridge/Editor/Helpers/ServerInstaller.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/UnityMcpBridge/Editor/Helpers/ServerInstaller.cs b/UnityMcpBridge/Editor/Helpers/ServerInstaller.cs index ddb4a50..aa02e7a 100644 --- a/UnityMcpBridge/Editor/Helpers/ServerInstaller.cs +++ b/UnityMcpBridge/Editor/Helpers/ServerInstaller.cs @@ -278,7 +278,6 @@ namespace UnityMcpBridge.Editor.Helpers string localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) ?? string.Empty; string programFiles = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) ?? string.Empty; string appData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) ?? string.Empty; - string programData = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) ?? string.Empty; // optional fallback // Fast path: resolve from PATH first try @@ -309,10 +308,8 @@ namespace UnityMcpBridge.Editor.Helpers candidates = new[] { // Preferred: WinGet Links shims (stable entrypoints) - // Per-user shim, then machine-wide shim + // Per-user shim (LOCALAPPDATA) → machine-wide shim (Program Files\WinGet\Links) Path.Combine(localAppData, "Microsoft", "WinGet", "Links", "uv.exe"), - Path.Combine(programData, "Microsoft", "WinGet", "Links", "uv.exe"), - // ProgramFiles Links is uncommon; keep as low-priority fallback Path.Combine(programFiles, "WinGet", "Links", "uv.exe"), // Common per-user installs