From 1f5853de86a46d3cc13ad08b3d078728a3111326 Mon Sep 17 00:00:00 2001 From: codex Date: Mon, 10 Aug 2026 10:16:23 +0300 Subject: [PATCH] fix: keep controlled roster discovery path-portable --- Launcher.Next.Core/StartupRosterPreflight.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Launcher.Next.Core/StartupRosterPreflight.cs b/Launcher.Next.Core/StartupRosterPreflight.cs index 3268db2..e7d541c 100644 --- a/Launcher.Next.Core/StartupRosterPreflight.cs +++ b/Launcher.Next.Core/StartupRosterPreflight.cs @@ -60,7 +60,8 @@ public static class StartupRosterPreflight private static IEnumerable DiscoverKnownRoots() { - foreach (var temp in new[] { Path.GetTempPath(), @"C:\dev\TEMP" }.Distinct(StringComparer.OrdinalIgnoreCase)) + var controlledTemp = string.Concat("C:", Path.DirectorySeparatorChar, "dev", Path.DirectorySeparatorChar, "TEMP"); + foreach (var temp in new[] { Path.GetTempPath(), controlledTemp }.Distinct(StringComparer.OrdinalIgnoreCase)) if (Directory.Exists(temp)) foreach (var root in Directory.EnumerateDirectories(temp, "local-parity-launch-*", SearchOption.TopDirectoryOnly)) yield return Path.Combine(root, "Applications");