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.
This commit is contained in:
Jack251970 2026-02-21 20:25:10 +08:00
parent d62fd05599
commit 04a56b556b

View file

@ -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