From 04a56b556b4748861d41695e229a12913aef76d5 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sat, 21 Feb 2026 20:25:10 +0800 Subject: [PATCH] Use Path.IsPathFullyQualified for absolute path check Replaced Path.IsPathRooted with Path.IsPathFullyQualified to more accurately determine if a path is truly absolute, preventing misclassification of certain relative paths. --- Flow.Launcher.Infrastructure/UserSettings/DataLocation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher.Infrastructure/UserSettings/DataLocation.cs b/Flow.Launcher.Infrastructure/UserSettings/DataLocation.cs index 802f09492..4c3a7b417 100644 --- a/Flow.Launcher.Infrastructure/UserSettings/DataLocation.cs +++ b/Flow.Launcher.Infrastructure/UserSettings/DataLocation.cs @@ -56,7 +56,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings return path; // If already absolute, return as-is - if (Path.IsPathRooted(path)) + if (Path.IsPathFullyQualified(path)) return path; // Resolve relative to ProgramDirectory, handling invalid path formats gracefully